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); }
public void ChangeCameraLevelStart() { maincam.SetActive(true); SecondCam.SetActive(false); }