Exemplo n.º 1
0
 void InstantiateMoveJumpParticles()
 {
     if ((Input.GetKey(KeyCode.A) || Input.GetKey(KeyCode.D)) && OnGround)
     {
         FeetDust.Play();
     }
     else
     {
         FeetDust.Stop();
     }
     if (OnGround)
     {
         if (isfeetDust)
         {
             PoofDown.Play();
             if (_groundShakeTrigger)
             {
                 _explosion.Boom();
                 _shake.CamScreenShake();
                 _boomAnim.BoomAnim();
             }
             isfeetDust = false;
         }
     }
     else
     {
         isfeetDust = true;
     }
 }