void Start() { rgb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); energy = 100; retroalimentacionSpawnPoint = GameObject.Find("spawnPoint").transform; ctrEscena = GameObject.Find("Escena").GetComponent <ControlEscena>(); aSource = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { rgb = GetComponent <Rigidbody2D> (); anim = GetComponent <Animator> (); rgb.freezeRotation = true; aSource = GetComponent <AudioSource> (); fin.enabled = false; relicTxt.enabled = false; aSource.volume = audioVolume; retroalimentacionSpawnPoint = GameObject.Find("spawnPoint").transform; ctrEscena = GameObject.Find("Fondo").GetComponent <ControlEscena> (); }