QuickCopy & fix NoteEffects
This commit is contained in:
@@ -15,6 +15,11 @@ namespace Ichni.RhythmGame
|
||||
this.value = value;
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public void ApplyTimeOffset(float offset)
|
||||
{
|
||||
time += offset;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
||||
@@ -26,6 +26,12 @@ namespace Ichni.RhythmGame
|
||||
this.endTime = endTime;
|
||||
this.animationCurveType = animationCurveType;
|
||||
}
|
||||
|
||||
public void ApplyTimeOffset(float offset)
|
||||
{
|
||||
startTime += offset;
|
||||
endTime += offset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按照起始时间排序
|
||||
|
||||
@@ -21,6 +21,11 @@ namespace Ichni.RhythmGame
|
||||
this.value = value;
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public void ApplyTimeOffset(float offset)
|
||||
{
|
||||
time += offset;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni
|
||||
namespace Ichni.RhythmGame
|
||||
{
|
||||
public enum FlexibleReturnType
|
||||
{
|
||||
|
||||
@@ -45,7 +45,8 @@ namespace Ichni.RhythmGame
|
||||
List<EffectBase> effectList = new List<EffectBase>();
|
||||
foreach (var effectBM in effect.Value)
|
||||
{
|
||||
effectList.Add(effectBM.ConvertToGameType());
|
||||
Debug.Log(attachedGameElement.GetType().ToString());
|
||||
effectList.Add(effectBM.ConvertToGameType(attachedGameElement));
|
||||
}
|
||||
effectCollection.Add(effect.Key, effectList);
|
||||
}
|
||||
@@ -283,7 +284,7 @@ namespace Ichni.RhythmGame
|
||||
/// 转换为游戏类
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public abstract EffectBase ConvertToGameType();
|
||||
public abstract EffectBase ConvertToGameType(GameElement attachedGameElement);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user