Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (Cylcing)
        {
            if (Input.GetKeyDown(KeyCode.Q))
            {
                animToPlay = AnimatorGnomeMage.Animations.Attack;
            }
            else if (Input.GetKeyDown(KeyCode.W))
            {
                animToPlay = AnimatorGnomeMage.Animations.Clone;
            }
            else if (Input.GetKeyDown(KeyCode.E))
            {
                animToPlay = AnimatorGnomeMage.Animations.Hover;
            }
        }

        testy.playAnimation(animToPlay);
    }
Exemple #2
0
    // Update is called once per frame
    void Update()
    {
        if(Cylcing)
        {
            if(Input.GetKeyDown(KeyCode.Q))
            {
                animToPlay = AnimatorGnomeMage.Animations.Attack;
            }
            else if(Input.GetKeyDown(KeyCode.W))
            {
                animToPlay = AnimatorGnomeMage.Animations.Clone;
            }
            else if(Input.GetKeyDown(KeyCode.E))
            {
                animToPlay = AnimatorGnomeMage.Animations.Hover;
            }
        }

        testy.playAnimation (animToPlay);
    }