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

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