public void ActivateRotation() { // rotate platform use the sound if (!use_Movement) { use_Movement = true; music.PlayAudio(true); // deactivate the sound and roatation Invoke("FindR", FindTime); } } // activate rotaton
void OnTriggerEnter(Collider target) { if (target.CompareTag(PlayerTag.PLAYER_TAG)) { if (!FinishedGame) { FinishedGame = true; music.PlayAudio(true); if (!LevelChange.Equals("")) { Invoke("NextLevel", timeforlevel); } } } }
public void ActivateMotion() { get_Motion = true; // make the audio work when acitvate motion music.PlayAudio(true); }