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

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