Esempio n. 1
0
        private void OnGameModeChanged(object sender, GameModeController.OnGameModeChangedArgs args)
        {
            switch (args.Mode)
            {
            case GameModeController.GameMode.Setup:
                Timing.RunCoroutine(SetupCoroutine());
                break;

            case GameModeController.GameMode.WakeUp:
                _Spawner.DestroyCards();
                ResetReferences();
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 private void OnGameModeChanged(object sender, GameModeController.OnGameModeChangedArgs args)
 {
     Timing.RunCoroutine(AnimateToTransform(args.Mode == GameModeController.GameMode.Menu ? _MenuTransform : _GameTransform, _CameraSpeed));
 }