/// <summary>Tick(Single) 的測試虛設常式</summary> internal TICKRESULT TickTest(SequenceNode target, float delta) { TICKRESULT result = target.Tick(delta); return(result); // TODO: 將判斷提示加入 方法 SequenceNodeTest.TickTest(SequenceNode, Single) }
private void _OnUnlcokResult(bool result) { if (result == false) { _Status = TICKRESULT.SUCCESS; } }
private void _OnUnlcokResult(bool result) { if (result == false) { _Status = TICKRESULT.SUCCESS; } }
public void Tick(float delta) { if (_Result == TICKRESULT.RUNNING) { var result = _Child.Tick(delta); _Result = result; } }
private TICKRESULT _Not(TICKRESULT check) { if (check == TICKRESULT.FAILURE) { return(TICKRESULT.SUCCESS); } if (check == TICKRESULT.SUCCESS) { return(TICKRESULT.FAILURE); } return(TICKRESULT.RUNNING); }
public static TICKRESULT Not(this TICKRESULT result) { if (result == TICKRESULT.FAILURE) { return(TICKRESULT.SUCCESS); } else if (result == TICKRESULT.SUCCESS) { return(TICKRESULT.FAILURE); } return(result); }
public void Start() { _Chest.UnlockEvent += _OnUnlcokResult; _Gate.Join(_Chest); _Status = TICKRESULT.RUNNING; }
void IAction.Start() { _Chest.UnlockEvent += _OnUnlcokResult; _Gate.Join(_Chest); _Status = TICKRESULT.RUNNING; }
public void Clear() { _Child.Reset(); _Result = TICKRESULT.RUNNING; }
public Item(ITicker child) { _Child = child; _Result = TICKRESULT.RUNNING; }