private void OnMainHubStateChanged(MainHubModel.EMainHubState mainHubState)
        {
            Type targetType = null;

            switch (mainHubState)
            {
            case MainHubModel.EMainHubState.Default:
                targetType = typeof(MainHubStateDefault);
                break;

            default:
                Debug.LogError("Add the Missing State.");
                break;
            }

            if (targetType != null &&
                (CurrentStateBehaviour == null ||
                 targetType != CurrentStateBehaviour.GetType()))
            {
                GoToState(targetType);
            }
        }
 private void OnMainHubStateChanged(MainHubModel.EMainHubState mainHubState)
 {
     GoToState((int)mainHubState);
 }