void Awake() { playerData = GameObject.Find("Player").GetComponent<PlayerData>(); gameStateData = this.gameObject.GetComponent<GameStateData>(); gameStateLogic = this.gameObject.GetComponent<GameStateLogic>(); }
void Awake() { gameStateData = this.gameObject.GetComponent<GameStateData>(); }