private void Awake() { playerStatus = GetComponent <Player_Status>(); inputManager = GetComponent <Player_InputManager>(); inputManager.OnUlt += CallRiptire; playerCamera = Camera.main; }
private void Awake() { Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; inputManager = GetComponent <Player_InputManager>(); if (playerCamera == null) { playerCamera = Camera.main.gameObject; } }
private void Awake() { inputManager = GetComponent <Player_InputManager>(); rb = GetComponent <Rigidbody>(); distToGround = GetComponent <CapsuleCollider>().bounds.extents.y; }