private void Start() { pasarVariables = GameObject.FindGameObjectWithTag("Variables").GetComponent <PasarVariables>(); CanvasObjetivos.enabled = false; Texto.enabled = false; Diario1.enabled = false; timeToWaitCur = timeToWait; isOnText = true; Caleb.bodyType = RigidbodyType2D.Static; timeBetweenScenesCur = timeBetweenScenes; }
void Start() { //hpBar.value = vida; pasarVariables = GameObject.FindGameObjectWithTag("Variables").GetComponent <PasarVariables>(); vida = pasarVariables.Vida; }
// Use this for initialization void Start() { PasarVariable = GameObject.FindGameObjectWithTag("Variables").GetComponent <PasarVariables>(); HpBar.value = PasarVariable.Vida; }
private void Start() { PasarVariable = GameObject.FindGameObjectWithTag("Variables").GetComponent <PasarVariables>(); reputation = PasarVariable.Repu; }