private void InternalStep() { if (_status == eComponentStatus.step) { OnStep(); } else if (_status == eComponentStatus.start && _frameId != BaseBattleInstance.Instance.frameController.GetFrame()) { _status = eComponentStatus.step; OnStep(); } else if (_status == eComponentStatus.awake && _frameId != BaseBattleInstance.Instance.frameController.GetFrame()) { _status = eComponentStatus.start; _frameId = BaseBattleInstance.Instance.frameController.GetFrame(); OnStart(); } }
private void InternalAwake() { _frameId = BaseBattleInstance.Instance.frameController.GetFrame(); _status = eComponentStatus.awake; OnAwake(); }