简单提交

This commit is contained in:
PC-20230316NUNE\Administrator
2024-10-18 15:29:52 +08:00
parent d9b0c78827
commit 8cea537319
57 changed files with 21430 additions and 21867 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 93d542b5cd7d40219abcee66ef046f93
timeCreated: 1729220421

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 70bc0ba32472468e8765e4c1f7acbcdf
timeCreated: 1729224096

View File

@@ -0,0 +1,65 @@
using GAS.General;
using GAS.Runtime;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Demo.Scripts.GAS.GameplayCue
{
public class GameplayCueDurational_PlayerDemo01 : GameplayCueDurational
{
[BoxGroup]
[LabelText("开始位置")]
public Vector3 start;
[BoxGroup]
[LabelText("结束位置")]
public Vector3 end;
public override GameplayCueDurationalSpec CreateSpec(GameplayCueParameters parameters)
{
return new GameplayCueDurational_PlayerDemo01_Spec(this,parameters);
}
#if UNITY_EDITOR
public override void OnEditorPreview(GameObject previewObject, int frameIndex, int startFrame, int endFrame)
{
Debug.Log($"GameplayCue_PlayerDemo01 {previewObject} {frameIndex}");
if (frameIndex >= startFrame && frameIndex <= endFrame)
{
previewObject.transform.position = Vector3.Lerp(start, end, (float)(frameIndex - startFrame) / endFrame);
}
}
#endif
}
public class GameplayCueDurational_PlayerDemo01_Spec : GameplayCueDurationalSpec<GameplayCueDurational_PlayerDemo01>
{
public GameplayCueDurational_PlayerDemo01_Spec(GameplayCueDurational_PlayerDemo01 cue, GameplayCueParameters parameters) : base(cue, parameters)
{
}
public override void OnAdd()
{
}
public override void OnRemove()
{
}
public override void OnGameplayEffectActivate()
{
}
public override void OnGameplayEffectDeactivate()
{
}
public override void OnTick()
{
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 321af3379125465380073b2a04a1b1e2
timeCreated: 1729234472

View File

@@ -0,0 +1,35 @@
using GAS.Runtime;
using UnityEngine;
namespace Demo.Scripts.GAS.GameplayCue
{
public class GameplayCue_PlayerDemo01 : GameplayCueInstant
{
public override GameplayCueInstantSpec CreateSpec(GameplayCueParameters parameters)
{
return new GameplayCue_PlayerDemo01_Spec(this,parameters);
}
#if UNITY_EDITOR
public override void OnEditorPreview(GameObject previewObject, int frame, int startFrame)
{
Debug.Log($"GameplayCue_PlayerDemo01 {previewObject}");
}
#endif
}
public class GameplayCue_PlayerDemo01_Spec : GameplayCueInstantSpec
{
public GameplayCue_PlayerDemo01_Spec(GameplayCueInstant cue, GameplayCueParameters parameters) : base(cue, parameters)
{
}
public override void Trigger()
{
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ec56ec3ecd444759979c63b23ecf0c39
timeCreated: 1729233357

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 364e48fdbe4b487f8a05c7b78291559c
timeCreated: 1729220475

View File

@@ -0,0 +1,42 @@
using GAS.Runtime;
using UnityEngine;
namespace Demo.Scripts.GAS.OngoingAbilityTasks
{
public class OngoingAbility_Debug : OngoingAbilityTask
{
public Vector3 start;
public Vector3 end;
#if UNITY_EDITOR
/// <summary>
/// 编辑器预览用
/// 【注意】 覆写时记得用UNITY_EDITOR宏包裹这是预览表现用的函数不该被编译。
/// </summary>
/// <param name="frame"></param>
/// <param name="startFrame"></param>
/// <param name="endFrame"></param>
public override void OnEditorPreview(int frame, int startFrame, int endFrame)
{
Debug.Log($"OnEditorPreview {Vector3.Lerp(start,end,(float)frame / (float)endFrame)}");
// _spec.Owner.gameObject.transform.position = Vector3.Lerp(start, end, (float)startFrame / endFrame);
}
#endif
public override void OnStart(int startFrame)
{
Debug.Log("OnEnd");
}
public override void OnEnd(int endFrame)
{
Debug.Log("OnEnd");
}
public override void OnTick(int frameIndex, int startFrame, int endFrame)
{
Debug.Log("OnTick");
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8f6034c656814b79b9be57cd41b35d9a
timeCreated: 1729220520