Esempio n. 1
0
 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>();
 }
Esempio n. 2
0
        void Awake()
        {
            playerData = this.gameObject.GetComponent<PlayerData>();
            playerLogic = GameObject.Find("Player").GetComponent<PlayerLogic>();

            //playerLogic.SetHealth(health);
        }
Esempio n. 3
0
 void Awake()
 {
     playerData = GameObject.Find("Player").GetComponent<PlayerData>();
 }