Ejemplo n.º 1
0
 private void Awake()
 {
     cardShepherd     = GetComponent <CardShepherd>();
     gameRules        = GetComponent <GameRules>();
     panelBucket      = GetComponent <PanelBucket>();
     sessionData      = GetComponent <SessionData>();
     gameStateChanger = GetComponent <GameStateChanger>();
     roundTimer       = GetComponent <RoundTimer>();
 }
Ejemplo n.º 2
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;
        }