提交编辑器确定数据

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-21 03:15:02 +08:00
parent cbacd5a501
commit 0371576f87
35 changed files with 11621 additions and 16049 deletions

View File

@@ -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);
}
}