예제 #1
0
    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
예제 #2
0
    void OnTriggerEnter(Collider target)
    {
        if (target.CompareTag(PlayerTag.PLAYER_TAG))
        {
            if (!FinishedGame)
            {
                FinishedGame = true;

                music.PlayAudio(true);

                if (!LevelChange.Equals(""))
                {
                    Invoke("NextLevel", timeforlevel);
                }
            }
        }
    }
예제 #3
0
 public void ActivateMotion()
 {
     get_Motion = true;
     // make the audio work when acitvate motion
     music.PlayAudio(true);
 }