public void FreezeAll() { //playerCamera.GetComponent<Animator>().enabled = false; SpaceShipMove ssm = gameObject.GetComponent <SpaceShipMove>(); ssm.DisableControl(); myDamagable.SetInvulnerable(true); playerCamera.transform.localPosition = cameraVortexPosition; playerCamera.transform.localEulerAngles = cameraVortexAngles; }