public void PerformPunch() { if (state == SecurityState.STAND || state == SecurityState.CHEER) { y = SCR_Gameplay.instance.cameraHeight - SECURITY_SIZE; if (y < SECURITY_START_Y) { y = SECURITY_START_Y; } trail.GetComponent <SCR_Trail>().JumpTo(x, y); trail.GetComponent <SCR_Trail>().TurnParticleOn(); SwitchState(SecurityState.FLY_UP); SCR_Audio.PlaySecurityFlyUpSound(); laughDelay = SECURITY_LAUGH_DELAY; } }