void Awake() { playerData = GameObject.Find("Player").GetComponent<PlayerData>(); playerLogic = GameObject.Find("Player").GetComponent<PlayerLogic>(); enemyData = this.gameObject.GetComponent<EnemyData>(); gameStateLogic = GameObject.Find("GameState").GetComponent<GameStateLogic>(); }
void Awake() { playerData = this.gameObject.GetComponent<PlayerData>(); playerLogic = GameObject.Find("Player").GetComponent<PlayerLogic>(); //playerLogic.SetHealth(health); }
void Awake() { playerData = GameObject.Find("Player").GetComponent<PlayerData>(); }