//cnc void Awake() { obj = this; playerRigidbody = GetComponent <Rigidbody>(); _mainCameraTransform = Camera.main.GetComponent <Transform>(); _transform = GetComponent <Transform>(); }
public static void PlayerDied() { if (instance.player == null) { return; } PlayerMovementAndLook playerMove = instance.player.GetComponent <PlayerMovementAndLook>(); playerMove.PlayerDied(); instance.player = null; }