Exemple #1
0
    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>();
 }
Exemple #3
0
 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>();
 }
Exemple #6
0
 // Start is called before the first frame update
 void Start()
 {
     playerVida = GameObject.FindWithTag("Cat").GetComponent <VidaPlayer>();
 }
Exemple #7
0
 // 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");
 }