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