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

            //playerLogic.SetHealth(health);
        }
Beispiel #3
0
 void Awake()
 {
     inventoryData = this.gameObject.GetComponent<InventoryData>();
     playerLogic = GameObject.Find("Player").GetComponent<PlayerLogic>();
 }