예제 #1
0
    public void Damage(float rawDamage)
    {
        if (invulnerable)
        {
            return;
        }
        Health -= rawDamage;

        bool isPlayerOne = (transform.parent.tag == "Pl1") ? true : false;

        MainCam.GetComponent <pulseCamera>().MakeMePulse(0.2f);
        SecondCam = cts.getCameraForPlayer(isPlayerOne);
        SecondCam.GetComponent <pulseCamera>().MakeMePulse(0.2f);
    }
예제 #2
0
    public void ChangeCameraLevelStart()
    {
        maincam.SetActive(true);

        SecondCam.SetActive(false);
    }