public void EmptyPollen() { if (inRange) { if (shakeCounter == 0) { player.Collect(); audioSource.Play(); } pollenEmitter.Play(); shakeCounter += 1; } }
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; } }