private void Awake() { singleton = this; myTransform = transform; defaultPosition = cameraTransform.localPosition.z; ignoreLayers = ~(1 << 8 | 1 << 9 | 1 << 10); }
private void Awake() { playerInventory = GetComponent <PlayerInventory>(); playerAttacker = GetComponent <PlayerAttacker>(); cameraHandler = CameraHandler.singleton; }