mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
简单提交
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
using Demo.Scripts.GAS.OngoingAbilityTasks;
|
||||
using GAS.Editor;
|
||||
using GAS.Editor;
|
||||
using GAS.Runtime;
|
||||
using JNGame.Math;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Demo.Editor.GAS.Ability.TaskInspector.OngoingAbility
|
||||
namespace JNGame.GAS
|
||||
{
|
||||
public class OngoingAbility_Debug_Inspector : OngoingTaskInspector<OngoingAbility_Debug>
|
||||
{
|
||||
|
||||
[Delayed, LabelText("开始位置"), OnValueChanged("OnStartChanged")]
|
||||
public Vector3 start;
|
||||
public LVector3 start;
|
||||
[Delayed, LabelText("结束位置"), OnValueChanged("OnEndChanged")]
|
||||
public Vector3 end;
|
||||
public LVector3 end;
|
||||
|
||||
public override void Init(OngoingAbilityTask task)
|
||||
{
|
||||
@@ -21,21 +21,13 @@ namespace Demo.Editor.GAS.Ability.TaskInspector.OngoingAbility
|
||||
start = _task.end;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 触发概率配置变更监听
|
||||
/// </summary>
|
||||
private void OnStartChanged()
|
||||
{
|
||||
_task.start = start;
|
||||
Save();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 技能配置ID变更监听
|
||||
/// </summary>
|
||||
private void OnEndChanged()
|
||||
{
|
||||
_task.end = end;
|
||||
Save();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user