예제 #1
0
 private void Awake()
 {
     playerStatus        = GetComponent <Player_Status>();
     inputManager        = GetComponent <Player_InputManager>();
     inputManager.OnUlt += CallRiptire;
     playerCamera        = Camera.main;
 }
예제 #2
0
    private void Awake()
    {
        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;

        inputManager = GetComponent <Player_InputManager>();
        if (playerCamera == null)
        {
            playerCamera = Camera.main.gameObject;
        }
    }
예제 #3
0
 private void Awake()
 {
     inputManager = GetComponent <Player_InputManager>();
     rb           = GetComponent <Rigidbody>();
     distToGround = GetComponent <CapsuleCollider>().bounds.extents.y;
 }