Ejemplo n.º 1
0
    public void Update()
    {
        LeapInputEx.Update();

        //if (== Gesture.GestureType.TYPEKEYTAP)
        //if (pointables[0].activeSelf){
        //	position = pointables[0].transform.position;
        //}

        if (Input.GetKeyDown(KeyCode.Alpha1) || Input.GetKeyDown(KeyCode.Keypad1))
        {
            attack = shoot.AttackMethod.Fire;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha2) || Input.GetKeyDown(KeyCode.Keypad2))
        {
            attack = shoot.AttackMethod.Lightning;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha3) || Input.GetKeyDown(KeyCode.Keypad3))
        {
            attack = shoot.AttackMethod.Water;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha4) || Input.GetKeyDown(KeyCode.Keypad4))
        {
            attack = shoot.AttackMethod.Wind;
        }
    }
Ejemplo n.º 2
0
    public void Update()
    {
        LeapInputEx.Update();

        //if (== Gesture.GestureType.TYPEKEYTAP)
        //if (pointables[0].activeSelf){
        //	position = pointables[0].transform.position;
        //}

        if (Input.GetKeyDown(KeyCode.Alpha1) || Input.GetKeyDown(KeyCode.Keypad1)){
            attack = shoot.AttackMethod.Fire;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha2) || Input.GetKeyDown(KeyCode.Keypad2)){
            attack = shoot.AttackMethod.Lightning;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha3) || Input.GetKeyDown(KeyCode.Keypad3)){
            attack = shoot.AttackMethod.Water;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha4) || Input.GetKeyDown(KeyCode.Keypad4)){
            attack = shoot.AttackMethod.Wind;
        }
    }