/// <summary>
    /// starts with setting all highlights to false and sets the player to inactive.
    /// </summary>
    void Start()
    {
        pauseCommands         = GetComponentInParent <PauseBehaviorScript>();
        toSelect              = BackGameButton;
        BackHighlight.enabled = true;
        QuitHighlight.enabled = false;
        #region OldStart

        /*
         * StartHighlight.enabled = true;
         * OptionsHighlight.enabled = false;
         * //*/
        /*
         * QuitHighlight.enabled = false;
         * //*/
        //StaticSpawnController.ActivatePlayer(playerIndex, false);
        #endregion
    }
Beispiel #2
0
    void Start()
    {
        Instance                = this;
        anim                    = GetComponent <Animation>();
        recognizer              = new GestureRecognizer();
        recognizer.TappedEvent += (source, tapCount, ray) =>
        {
            if (anim.isPlaying)
            {
                anim.Stop();
            }
            else
            {
                anim.Play();
            }
        };

        recognizer.StartCapturingGestures();
    }