void Start() { _instance = this; _uiHandler = GameObject.Find("Canvas").GetComponent<UIHandler>(); _player = GameObject.Find("PlayerController").GetComponent<PlayerController>(); }
void Start() { Debug.Log("GameData.Start()"); _instance = this; _uiHandler = GameObject.Find("Canvas").GetComponent<UIHandler>(); _uiHandler.UpdatePointsCollected(_totalPointsCollected); _planeManager.gameObject.SetActive(true); }
void Start () { _instance = this; _remainingTimeText = transform.FindChild("Time Remaining").GetComponent<Text>(); _pointsCollectedText = transform.FindChild("Points Collected").GetComponent<Text>(); _countdownText = transform.FindChild("Countdown").GetComponent<Text>(); _fadeOutImage = transform.FindChild("FadeOut").GetComponent<Image>(); _countdownText.enabled = false; _moveIndicators = transform.FindChild("MoveIndicators"); _moveIndicators.FindChild("Left").GetComponent<Text>().enabled = false; _moveIndicators.FindChild("Right").GetComponent<Text>().enabled = false; _moveIndicators.FindChild("Up").GetComponent<Text>().enabled = false; _moveIndicators.FindChild("Down").GetComponent<Text>().enabled = false; _moveIndicators.gameObject.SetActive(false); }