///// #endregion ///////// #region Funções Unity void Start() { pulou1 = pulou2 = false; podePular = true; playerBasicoVida = GetComponent <PlayerBasicoVida>(); playerRB2D = GetComponent <Rigidbody2D>(); _myGameController = FindObjectOfType(typeof(MyGameController)) as MyGameController; _myGameController.playerTrasnform = this.transform; particulasDashSolo.Stop(true); particulasDashAr.Stop(true); }
void Start() { playerTrasnform = playerGameObject.GetComponent <Transform>(); playerBasicoVida = playerGameObject.GetComponent <PlayerBasicoVida>(); cam = Camera.main; tempoInicioFase = tempoFase;//seta o valor StartCoroutine("CronometroTempo", tempoFase); tempoUiText.text = tempoFase.ToString(); LoadFase(); Time.timeScale = 1f; }