// Use this for initialization void Start() { mp = ManagerPelea.singleton; anim = GetComponent <Animator>(); nv = GetComponent <NavMeshAgent>(); nv.updateRotation = false; }
// Use this for initialization void Awake() { if (singleton != null) { Destroy(gameObject); return; } singleton = this; }
void Awake() { if (singleton != null) { Destroy(gameObject); return; } singleton = this; CantidadDePeleas++; Analytics.CustomEvent("PeleaEmepezar", new Dictionary <string, object> { { "Dragoncito1", Controlador.dragoncito1 }, { "Dragoncito2", Controlador.dragoncito2 }, { "Enemigo", Controlador.escenaPrevia }, { "Cantidad", CantidadDePeleas } }); }
void Awake() { mp = GameObject.Find("Canvas").GetComponent <ManagerPelea> (); }