Esempio n. 1
0
 private void Awake()
 {
     if (m_enemyLootManager == null)
     {
         m_enemyLootManager = this;
     }
     else if (m_enemyLootManager != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 2
0
 private void Start()
 {
     m_lootManager = GameObject.FindObjectOfType <EnemyLootManager>();
 }
Esempio n. 3
0
 private void Start()
 {
     m_lootManager = GameObject.FindObjectOfType <EnemyLootManager>();
     m_Collectable = GameObject.FindObjectOfType <Collectable>();
 }