Esempio n. 1
0
    // ReSharper disable once UnusedMember.Local
    protected virtual void OnCollisionEnter(Collision other)
    {
        SetMessage();

        Debug.Log("OnCollisionEnter " + gameObject.name);

        if (other.gameObject.tag == "Player")
        {
            Debug.Log("A player just collided with : " + gameObject.name);
            player.GetCamera().gameObject.SetActive(false);
            cameraGameOver.gameObject.SetActive(true);
            text.gameObject.SetActive(true);
            player.PlayerIsDead         = true;
            player.NextRespawnTransform = ReswpanPointTransform;
        }
    }