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

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