public void SetMode(int mode)
 {
     modes[m_currentMode].onExitMode.Invoke();
     m_currentMode = mode;
     modes[m_currentMode].onEnterMode.Invoke();
     onModeChanged.Invoke(modes[m_currentMode].name);
     //modes[mode].ApplyMode(gameObject);
 }
Exemple #2
0
 protected virtual void RaiseModeEvent(TokenEventArgs e)
 {
     ModeEvent?.Invoke(this, e);
 }