Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        mp   = ManagerPelea.singleton;
        anim = GetComponent <Animator>();
        nv   = GetComponent <NavMeshAgent>();

        nv.updateRotation = false;
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     if (singleton != null)
     {
         Destroy(gameObject);
         return;
     }
     singleton = this;
 }
Ejemplo n.º 3
0
    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> ();
 }