public void onPop() { //only pop, if game is not paused if (!gameSpeedControllerObject.GetPaused()) { soundObject.PlayMagneticPopSound(); } }
public void onPop() { //only pop, if game is not paused if (!gameSpeedControllerObject.GetPaused()) { soundObject.PlayNegativePopSound(); gameScore.ProcessNegativeBubblePop(lifetime, maxLifetime, gameObject.transform.position); Destroy(gameObject); } }