Beispiel #1
0
 void LateUpdate()
 {
     if (instrument.thirdOffset == 0)
     {
         baseSprite.color = lightBlue;
         animator.runtimeAnimatorController = smileAnimation;
     }
     else
     {
         baseSprite.color = darkBlue;
         animator.runtimeAnimatorController = frownAnimation;
     }
     if (singer.IsSinging())
     {
         animator.Play("Sing");
     }
     else
     {
         animator.Play("Idle");
     }
 }