Example #1
0
 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();
     }
 }
Example #2
0
 public void AddOrReplaceShortState(BaseFollowShortState shortState)
 {
     if (this._shortState != null)
     {
         this.RemoveShortState();
         this.AddShortState(shortState);
     }
     else
     {
         this.AddShortState(shortState);
     }
 }
Example #3
0
 public void RemoveShortState()
 {
     this._shortState.SetActive(false);
     this._shortState.Exit();
     this._shortState = null;
 }