Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        Vector3 shootDirection = Vector3.right * Input.GetAxis(horizontalAxis) + Vector3.forward * Input.GetAxis(verticalAxis);

        if (shootDirection.sqrMagnitude > 0.0f)
        {
            transform.rotation = Quaternion.LookRotation(shootDirection, Vector3.up);

            currentSkill.Cast();
        }
    }