Beispiel #1
0
 public void PlayAnim(AnimKind anim, bool bvalue, float fvalue)
 {
     switch (anim)
     {
     case AnimKind.Run:
         if (cntAnimator.GetBool(paramIDRun) != bvalue)
         {
             cntAnimator.SetBool(paramIDRun, bvalue);
         }
         cntAnimator.SetFloat(paramIDRunSpeed, fvalue);
         break;
     }
 }
Beispiel #2
0
    public void PlayAnim(AnimKind anim, bool value)
    {
        switch (anim)
        {
        case AnimKind.Jump:
            cntAnimator.SetBool(paramIDJump, value);
            break;

        case AnimKind.Flag:
            cntAnimator.SetBool(paramIDFlag, value);
            break;
        }
    }
Beispiel #3
0
    public void PlayAnim(AnimKind anim)
    {
        switch (anim)
        {
        case AnimKind.Death:
            cntAnimator.SetTrigger(paramIDDeath);
            break;

        case AnimKind.Growth:
            cntAnimator.SetTrigger(paramIDGrowth);
            break;

        case AnimKind.Hit:
            cntAnimator.SetTrigger(paramIDHit);
            break;
        }
    }