示例#1
0
 public void EmptyPollen()
 {
     if (inRange)
     {
         if (shakeCounter == 0)
         {
             player.Collect();
             audioSource.Play();
         }
         pollenEmitter.Play();
         shakeCounter += 1;
     }
 }
示例#2
0
    public void FillUpPollen()
    {
        if (inRange)
        {
            //At first collect start music and anim
            if (pollenCounter == 0 ^ Input.GetKeyDown(KeyCode.Space))
            {
                player.Collect();
                audioSource.Play();
            }

            pollenEmitter.Play();
            pollenCounter += 1;
        }
    }