示例#1
0
    private void OnTriggerEnter(Collider other)
    {
        PowerupController pc = other.gameObject.GetComponent <PowerupController>();

        if (pc == null)
        {
            return;
        }

        pc.RandomizePowerup();
        StartCoroutine(RespawnCoroutine());
        DeactivateObject();
    }