void RestoreInitialValue(int bonusItem) { switch (bonusItem) { case 3: scale[0] = originalScaleBackup[0]; scale[1] = originalScaleBackup[1]; scale[2] = originalScaleBackup[2]; transform.localScale = new Vector3(scale[0], scale[1], scale[2]); qmBonus = false; break; case 4: controlClass.ResetSpeed(); upBonus = false; break; case 5: controlClass.ResetSpeed(); downBonus = false; break; default: Debug.Log("BonusItem: " + bonusItem); break; } }