Exemplo n.º 1
0
    IEnumerator OnTriggerEnter(Collider other)
    {
        if (popUpTextPrefab && other.gameObject.name == "jumpUP")
        {
            movement3 movement3 = GetComponent <movement3>();
            movement3.canMove = false;

            ShowpopUpText();

            yield return(new WaitForSeconds(3));

            movement3.canMove = true;
        }
    }
Exemplo n.º 2
0
 private void Start()
 {
     speedAccess = gameObject.GetComponent <movement3>();
 }