mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
提交编辑器确定数据
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
using GAS.General;
|
||||
using GAS.Runtime;
|
||||
using GASSamples.Scripts;
|
||||
using GAS.Runtime;
|
||||
using GASSamples.Scripts.Game.GAS;
|
||||
using JNGame.Math;
|
||||
using JNGame.Runtime.Odin.TypeCustomize;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -14,10 +11,10 @@ namespace Demo.Scripts.GAS.GameplayCue
|
||||
|
||||
[BoxGroup]
|
||||
[LabelText("开始位置")]
|
||||
public OdinLVector3 start;
|
||||
public LVector3 start;
|
||||
[BoxGroup]
|
||||
[LabelText("结束位置")]
|
||||
public OdinLVector3 end;
|
||||
public LVector3 end;
|
||||
|
||||
public override GameplayCueDurationalSpec CreateSpec(GameplayCueParameters parameters)
|
||||
{
|
||||
@@ -70,7 +67,7 @@ namespace Demo.Scripts.GAS.GameplayCue
|
||||
{
|
||||
|
||||
Debug.Log($"GameplayCueDurational_PlayerDemo01_Spec OnTick {frame}");
|
||||
((GAbilitySystemComponent)Owner).Entity.Transform.Position = LVector3.Lerp(cue.start.ToLVector3(), cue.end.ToLVector3(), (LFloat)(frame - startFrame) / endFrame);
|
||||
((GAbilitySystemComponent)Owner).Entity.Transform.Position = LVector3.Lerp(cue.start, cue.end, (LFloat)(frame - startFrame) / endFrame);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user