private void OnTriggerEnter(Collider other) { PowerupController pc = other.gameObject.GetComponent <PowerupController>(); if (pc == null) { return; } pc.RandomizePowerup(); StartCoroutine(RespawnCoroutine()); DeactivateObject(); }
private void OnTriggerEnter(Collider other) { PowerupController pc = other.gameObject.GetComponent <PowerupController>(); if (pc == null) { return; } pc.RandomizePowerup(); StartCoroutine(RespawnCoroutine()); DeactivateObject(); }