浏览代码

Added protected OriginSO getters to actions and conditions

/main
DeivSky 4 年前
当前提交
7c6a362d
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1
      UOP1_Project/Assets/Scripts/StateMachine/Core/StateAction.cs
  2. 1
      UOP1_Project/Assets/Scripts/StateMachine/Core/StateCondition.cs

1
UOP1_Project/Assets/Scripts/StateMachine/Core/StateAction.cs


public abstract class StateAction : IStateComponent
{
internal StateActionSO _originSO;
protected StateActionSO OriginSO => _originSO;
/// <summary>
/// Called every frame the <see cref="StateMachine"/> is in a <see cref="State"/> with this <see cref="StateAction"/>.

1
UOP1_Project/Assets/Scripts/StateMachine/Core/StateCondition.cs


private bool _isCached = false;
private bool _cachedStatement = default;
internal StateConditionSO _originSO;
protected StateConditionSO OriginSO => _originSO;
/// <summary>
/// Specify the statement to evaluate.

正在加载...
取消
保存