void Awake()
    {
        atbPlayer = GetComponent <Atributos>();
        ctrAnim   = GetComponent <ControleDeAnimacao>();

        arma  = AutoSave.QualArma(atbPlayer.Personagem);
        nivel = AutoSave.QualNivel(arma);
    }
Exemplo n.º 2
0
 void Start()
 {
     SFX = GameObject.Find("CaixaDeSom").GetComponent <EfeitoSonoro>();
     if (Principal.CompareTag("Player"))
     {
         ctrAnim = Principal.transform.GetComponent <ControleDeAnimacao>();
     }
     else
     {
         ctrAnimIni = Principal.transform.GetComponent <ControleDeAnimacaoInimigo>();
     }
 }
Exemplo n.º 3
0
 void Awake()
 {
     ctrAnim  = GetComponent <ControleDeAnimacao>();
     SFX      = GameObject.Find("SFX").GetComponent <AudioSource>();
     SFX.clip = SomPassos;
 }
Exemplo n.º 4
0
 void Awake()
 {
     ctrAnim  = GetComponent <ControleDeAnimacao>();
     rdb      = GetComponent <Rigidbody>();
     Seguidor = FindObjectOfType <MoveCamera>().gameObject;
 }