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

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