AnimationHandler.Punch C# (CSharp) Method

Punch() public method

public Punch ( ) : void
return void
    public void Punch()
    {
        punchIndex = !punchIndex;
        //armLA.Stop ();
        //armRA.Stop ();
        if (!armLA.isActiveAndEnabled) {
            armRA.Play ("MonkRPunch");
            armRA.SetTrigger ("Punch");
        } else {

            if (punchIndex) {
                armRA.Play ("MonkRPunch");
                armRA.SetTrigger ("Punch");

            } else {
                armLA.Play ("MonkLPunch");
                armLA.SetTrigger ("Punch");

            }
        }
    }