Exemplo n.º 1
0
        internal void Start()
        {
            _tutorialText = GameObject.Find("Tutorial Text").GetComponent <Text>();

            //p = GameObject.Find("Player");

            Cheat CheatObj = GameObject.FindObjectOfType <Cheat>();

            if (CheatObj.cheating)
            {
                ShowTutorial = false;
            }

            else
            {
                ShowTutorial = true;
            }



            //p = GameObject.Find("Player");
            //start = GameObject.Find("Player").start

            wait      = 3.0f;
            wait_long = 6.0f;
            UpdateText();
        }
 public void takeCheatCommand()
 {
     World.log("World.map: " + world.map);
     World.log("Cheatfield.text " + cheatField.text);
     Cheat.takeCommand(world.map, cheatField.text);
     cheatField.text = "";
 }
Exemplo n.º 3
0
        internal void Start()
        {
            _tutorialText = GameObject.Find("Tutorial Text").GetComponent <Text>();
            p             = GameObject.Find("Player");
            //start = GameObject.Find("Player").start

            Cheat CheatObj = GameObject.FindObjectOfType <Cheat>();

            if (CheatObj.cheating)
            {
                ShowTutorial = false;
            }

            else
            {
                ShowTutorial = true;
            }


            wait      = 3.0f;
            wait_long = 6.0f;
            UpdateText();
            if (Player.hasGravityBoots)
            {
                _tutorialText.text = "";
                gravity            = true;
                _tutorialState     = TutorialState1.DoneWithTutorial;
            }
            if (!gravity)
            {
                UpdateText();
            }
        }
Exemplo n.º 4
0
        internal void Start()
        {
            _tutorialText = GameObject.Find("Tutorial Text").GetComponent <Text>();
            p             = GameObject.Find("Player");
            //start = GameObject.Find("Player").start

            Cheat CheatObj = GameObject.FindObjectOfType <Cheat>();

            if (CheatObj.cheating)
            {
                ShowTutorial = false;
            }

            else
            {
                ShowTutorial = true;
            }


            wait      = 3.0f;
            wait_long = 6.0f;
            if (!Player.hasRocketBoost)
            {
                _tutorialText.text = "That jump looks awfully high...";
                rocket             = false;
            }
            if (Player.hasGravityBoots)
            {
                _tutorialText.text = "";
                gravity            = true;
            }
            if (rocket && !gravity)
            {
                UpdateText();
            }
        }
Exemplo n.º 5
0
 public void takeCheatCommand()
 {
     Cheat.takeCommand(world.map, cheatField.text);
     cheatField.text = "";
 }