private void _OnStateChange(EBtnPageState _state) { if (_state != mCurState) { mPreState = mCurState; mCurState = _state; _StateEnter(mPreState); } }
private void _StateEnter(EBtnPageState _prevState) { switch (mCurState) { case EBtnPageState.eGo: Debug.LogError("-----gogogo!-----------------"); break; case EBtnPageState.eBack: Debug.LogError("-----back!-----------------"); break; } }