private void Awake() { winScreenMenu = winScreen.GetComponent <WinScreenMenu>(); musicManager = FindObjectOfType <MusicManager>(); soundManager = FindObjectOfType <SoundManager>(); playerControl = FindObjectOfType <PlayerControl>(); retrowaveSunIconFront = transform.GetChild(0).gameObject; retrowaveSunIconBack = transform.GetChild(1).gameObject; getOverHereText = transform.GetChild(2).gameObject; }
//Actions to broadcast to the UI // public Action<int, int> GlobalTargetUpdate = null; // public Action<int, int> GlobalConsecUpdate = null; // public Action<int, int> GlobalScoreUpdate = null; // public Action<int, float> GlobalTimeUpdate = null; // public Action<int, bool> GlobalNoTargetMissed = null; void Awake() { m_input = GameObject.Find("Main Camera").GetComponent <TouchInput>(); m_button = GameObject.Find("Game_Start_Menu").GetComponent <Start_Button> (); m_winScreen = GameObject.Find("Win_Screen").GetComponent <WinScreenMenu> (); m_input.ScoreChange += UpdateScore; // m_theStats = GameObject.Find("Global Stats").GetComponent<GlobalStats>(); // m_theStats.LinkToGame(); m_score = GameObject.Find("Timer").GetComponent <Text> (); m_multiplier = GameObject.Find("Multiplier").GetComponent <Text> (); m_textTimeRemaining = GameObject.Find("Score").GetComponent <Text> (); m_timeRemaining = m_timePerRound; }