mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
3
JNFrame2/Assets/Scripts/GASSamples/Editor/GAS.meta
Normal file
3
JNFrame2/Assets/Scripts/GASSamples/Editor/GAS.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fbf21400b3864f29b6c0abab26b025f0
|
||||
timeCreated: 1729222533
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e8455bd06c174f28abd859715d4d4504
|
||||
timeCreated: 1729222551
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28929d3e41dc4dc4ace45485eb45849f
|
||||
timeCreated: 1729222562
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac9ad0beca774e71beb0bb45da860226
|
||||
timeCreated: 1729222612
|
@@ -0,0 +1,43 @@
|
||||
using Demo.Scripts.GAS.OngoingAbilityTasks;
|
||||
using GAS.Editor;
|
||||
using GAS.Runtime;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Demo.Editor.GAS.Ability.TaskInspector.OngoingAbility
|
||||
{
|
||||
public class OngoingAbility_Debug_Inspector : OngoingTaskInspector<OngoingAbility_Debug>
|
||||
{
|
||||
|
||||
[Delayed, LabelText("开始位置"), OnValueChanged("OnStartChanged")]
|
||||
public Vector3 start;
|
||||
[Delayed, LabelText("结束位置"), OnValueChanged("OnEndChanged")]
|
||||
public Vector3 end;
|
||||
|
||||
public override void Init(OngoingAbilityTask task)
|
||||
{
|
||||
base.Init(task);
|
||||
start = _task.start;
|
||||
start = _task.end;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 触发概率配置变更监听
|
||||
/// </summary>
|
||||
private void OnStartChanged()
|
||||
{
|
||||
_task.start = start;
|
||||
Save();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 技能配置ID变更监听
|
||||
/// </summary>
|
||||
private void OnEndChanged()
|
||||
{
|
||||
_task.end = end;
|
||||
Save();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73bc2380baef40fa9340b5518186bb8c
|
||||
timeCreated: 1729222616
|
Reference in New Issue
Block a user