与编辑器同步,增加sync优化bloom,添加打包时自动打包主题包的特性
(怎么这么多meta文件啊) Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
39
Assets/Scripts/DataCore/Animations_BM/PositionSync_BM.cs
Normal file
39
Assets/Scripts/DataCore/Animations_BM/PositionSync_BM.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Ichni.RhythmGame.Beatmap
|
||||
{
|
||||
public class PositionSync_BM : GameElement_BM
|
||||
{
|
||||
public FlexibleBool_BM enabling;
|
||||
public Guid syncTargetObjectGuid;
|
||||
|
||||
public PositionSync_BM()
|
||||
{
|
||||
}
|
||||
|
||||
public PositionSync_BM(string elementName, Guid elementGuid, List<string> tags,
|
||||
GameElement_BM attachedElement, FlexibleBool_BM enabling, Guid syncTargetObjectGuid)
|
||||
: base(elementName, elementGuid, tags, attachedElement)
|
||||
{
|
||||
this.enabling = enabling;
|
||||
this.syncTargetObjectGuid = syncTargetObjectGuid;
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = PositionSync.GenerateElement(elementName, elementGuid, tags, false,
|
||||
GetElement(attachedElementGuid), GetElement(syncTargetObjectGuid),
|
||||
enabling?.ConvertToGameType() ?? new FlexibleBool());
|
||||
matchedElement.matchedBM = this;
|
||||
}
|
||||
|
||||
public override void AfterExecute()
|
||||
{
|
||||
if (matchedElement is PositionSync positionSync)
|
||||
{
|
||||
positionSync.syncTargetObject = GetElement(syncTargetObjectGuid);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b7660debb70462f8139aca3ccf9d839
|
||||
Reference in New Issue
Block a user