void Start() { GameObject dcwObject = GameObject.FindWithTag("GameController"); dcw = dcwObject.GetComponent <DeathCountWinner> (); timeShower.text = "Time: "; }
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> (); }
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; }
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 = ""; }