SkyUpdatement已更新
This commit is contained in:
@@ -73,5 +73,16 @@ namespace Demo.Game
|
||||
{
|
||||
ManualAddEntry(time, sky, default);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 在指定时刻切换天空
|
||||
/// </summary>
|
||||
/// <param name="time"></param>
|
||||
/// <param name="sky"></param>
|
||||
[Convention.RScript.Variable.Attr.Method]
|
||||
public void Add(float time, string sky)
|
||||
{
|
||||
ManualAddEntry(time, sky, default);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -364,7 +364,8 @@ namespace Demo.Game
|
||||
}
|
||||
finally
|
||||
{
|
||||
Destroy(MainObject.gameObject);
|
||||
if (MainObject)
|
||||
Destroy(MainObject.gameObject);
|
||||
if (Editor.EditorController.instance.MainGameController == this)
|
||||
{
|
||||
Editor.EditorController.instance.MainGameController = null;
|
||||
|
||||
@@ -30,16 +30,27 @@ namespace Demo.Game
|
||||
/// <param name="time"></param>
|
||||
/// <param name="position"></param>
|
||||
/// <param name="curveType"></param>
|
||||
public void ManualAddEntry(string time, DataType position, MathExtension.EaseCurveType curveType)
|
||||
public void ManualAddEntry(float time, DataType position, MathExtension.EaseCurveType curveType)
|
||||
{
|
||||
Entries.Add(new()
|
||||
{
|
||||
TimePoint = Parse(time),
|
||||
TimePoint = time,
|
||||
Position = position,
|
||||
easeCurveType = curveType
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加数据
|
||||
/// </summary>
|
||||
/// <param name="time"></param>
|
||||
/// <param name="position"></param>
|
||||
/// <param name="curveType"></param>
|
||||
public void ManualAddEntry(string time, DataType position, MathExtension.EaseCurveType curveType)
|
||||
{
|
||||
ManualAddEntry(time, position, curveType);
|
||||
}
|
||||
|
||||
private void UpdateEntry(int start, float percent)
|
||||
{
|
||||
UpdatementEntry head = Entries[start], tail = Entries[Mathf.Min(start + 1, Entries.Count - 1)];
|
||||
|
||||
Reference in New Issue
Block a user