void Start() { currentScene = SceneManager.GetActiveScene(); sceneName = currentScene.name; move = true; if (sceneName == "NivelMinas" && WakingUpAnimation == 0) { StartCoroutine(Standing()); } facingRight = true; miTransform = GetComponent <Rigidbody2D>(); life = GetComponent <VidaPlayer>(); }
// Start is called before the first frame update void Start() { playerVida = GameObject.FindWithTag("Player").GetComponent <VidaPlayer>(); playerrb = GameObject.FindWithTag("Player").GetComponent <Rigidbody2D>(); }
private void Start() { pickaxe.GetComponent <BoxCollider2D>().enabled = false; life = GetComponent <VidaPlayer>(); miTransform = GetComponent <Rigidbody2D>(); }
void Start() { vidaPl = FindObjectOfType <VidaPlayer>(); tiempoRest = tiempoReiniciar; }
//InfoCristales[] info; // Start is called before the first frame update void Start() { vida = FindObjectOfType <VidaPlayer>(); cristales = FindObjectsOfType <Explodable>(); }
// Start is called before the first frame update void Start() { playerVida = GameObject.FindWithTag("Cat").GetComponent <VidaPlayer>(); }
// Start is called before the first frame update void Start() { playerVida = GameObject.FindWithTag("Player").GetComponent <VidaPlayer>(); inicial = GameObject.FindWithTag("Player").GetComponent <PosicionInicial>(); jugador = GameObject.FindWithTag("Player"); }