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