protected static IEnumerator ChangingMode(GameMode _mode) { yield return(new WaitForEndOfFrame()); if (mode != _mode) { mode = _mode; ChangeModeEvent?.Invoke(mode); } }
protected virtual void onChangeModeEvent(Mode m) { ChangeModeEvent?.Invoke(this, new ModeEventArgs(m)); }