public void AddShortState(BaseFollowShortState shortState) { if ((this._baseState != null) && !this._baseState.maskedShortStates.Contains(shortState)) { this._shortState = shortState; this._shortState.SetActive(true); this._shortState.Enter(); this.SubStateStatusReset(); } }
public void AddOrReplaceShortState(BaseFollowShortState shortState) { if (this._shortState != null) { this.RemoveShortState(); this.AddShortState(shortState); } else { this.AddShortState(shortState); } }
public void RemoveShortState() { this._shortState.SetActive(false); this._shortState.Exit(); this._shortState = null; }