Exemple #1
0
    void Start()
    {
        GameObject dcwObject = GameObject.FindWithTag("GameController");

        dcw = dcwObject.GetComponent <DeathCountWinner> ();

        timeShower.text = "Time: ";
    }
Exemple #2
0
    void Start()
    {
        //GameObject movementObject = GameObject.FindWithTag ("Platform");
        //movement = movementObject.GetComponent<Movement>();

        GameObject gameControllerObject = GameObject.FindWithTag("GameController");

        gameController = gameControllerObject.GetComponent <DeathCountWinner>();

        pulando = true;
        direit  = true;
        StartCoroutine(SpeedUp());
        anim = GetComponent <Animator> ();
        rb   = GetComponent <Rigidbody2D> ();
    }
Exemple #3
0
    void Start()
    {
        GameObject playerMovementObject = GameObject.FindWithTag("Player");

        playerMovement = playerMovementObject.GetComponent <playerMovement>();

        GameObject gameControllerObject = GameObject.FindWithTag("GameController");

        gameController = gameControllerObject.GetComponent <DeathCountWinner>();

        startText.text = "";
        StartCoroutine(GameStartGame());

        deathCounter          = 0;
        deathCounterText.text = "Score: " + deathCounter;
    }
Exemple #4
0
    void Start()
    {
        GameObject dcwObject = GameObject.FindWithTag("GameController");

        dcw = dcwObject.GetComponent <DeathCountWinner> ();

        pulando = true;
        direit  = true;
        StartCoroutine(SpeedUp());
        anim = GetComponent <Animator> ();
        rb   = GetComponent <Rigidbody2D> ();

        deathCounterUI.SetActive(true);

        deathCounter[player] = 0;

        deathCounterText.text = "";
    }