Beispiel #1
0
        private void Awake()
        {
            panelBucket        = GetComponent <PanelBucket>();
            sessionData        = GetComponent <SessionData>();
            roundCoordinator   = GetComponent <RoundCoordinator>();
            roundTimer         = GetComponent <RoundTimer>();
            gameRules          = GetComponent <GameRules>();
            roundEndController = GetComponent <RoundEndController>();
            cardShepherd       = GetComponent <CardShepherd>();

            ChangeGameState(GameState.SplashScreen);
            Cloud.OnCloudLoadComplete += DeactivateSplashScreen;

            var instructionsAnims = panelBucket.Instructions.GetComponent <PanelAnimatorHelper>();

            instructionsAnims.OnShown  += GameStateChangerOnShown;
            instructionsAnims.OnHidden += GameStateChangerOnHidden;
            var resultsAnims = panelBucket.RoundResults.GetComponent <PanelAnimatorHelper>();

            resultsAnims.OnShown  += GameStateChangerOnShown;
            resultsAnims.OnHidden += GameStateChangerOnHidden;
            panelBucket.GameResults.GetComponent <PanelAnimatorHelper>().OnShown += GameStateChangerOnShown;
        }
Beispiel #2
0
 private void Awake()
 {
     roundCoordinator = GetComponent <RoundCoordinator>();
 }