Beispiel #1
0
    void Start()
    {
        generator = FindObjectOfType <trainGenerator>();
        wagon     = generator.Wagon;

        transform.position = wagon.getBoxPosition();
        boxState           = "Waiting";
        changeBoxes        = false; changePossible = false;

        //boxLetter = "A";
        boxText      = GetComponentInChildren <TextMesh>();
        boxText.text = boxLetter;
    }
Beispiel #2
0
    void Start()
    {
        manager = FindObjectOfType <trainLevelManager>();

        wagonAnim       = GetComponent <Animator>(); wagonAnim.SetBool("Moving", true);
        generator       = FindObjectOfType <trainGenerator>();
        wBefore         = generator.Wagon;
        generator.Wagon = this;

        wagonState = "Moving";

        if (wBefore != null)
        {
            wBefore.wNext = this;
        }
        else
        {
            Locomotive.setNextWagon(this);
        }
    }
    void Start()
    {
        /*lettersList[0]= new string [] { "H", "O", "L", "A" };
         * lettersList[1] = new string[] { "P", "A", "L", "O" };
         * lettersList[2] = new string[] { "A", "L", "T", "O" };
         * lettersList[3] = new string[] { "A", "R", "B", "O","L" };
         * lettersList[4] = new string[] { "M", "A", "L", "E", "T", "A" };*/

        //Paraliza el juego cuando la app queda en segundo plano.
        Application.runInBackground = false;

        level = 1;

        dlevels     = GetComponent <TrainDifficultylevels>();
        lettersList = dlevels.getLevelList(level);

        TrainGenerator = GetComponent <trainGenerator>();
        WordTester     = GetComponent <wordTester>();
        messageGrandma = FindObjectOfType <grandmaMessage>();
        countdownTimer = 70f;

        levelState = "Initial";
    }