Beispiel #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "BottomPlayer" || other.tag == "Player")
        {
            other.GetComponent <PlayerController>().Death();

            EnemyObject.GameOver(other);
        }
        else if (other.tag == "UpPlayer")
        {
            PlayerController.j = 0;
        }
    }