예제 #1
0
    //GameObject torre;
    //Vector3 posinicial;


    void Start()
    {
        golpesonido       = GetComponent <AudioSource>();
        construirmanager  = Construirmanager.instance;
        agent.destination = GameObject.Find("villa").transform.position;
        vida_golem        = vida_max;
    }
예제 #2
0
    void Start()
    {
        rend      = GetComponent <Renderer>();
        starcolor = rend.material.color;

        construirmanager = Construirmanager.instance;
    }
예제 #3
0
 void Start()
 {
     sonidogolpe       = GetComponent <AudioSource>();
     construirmanager  = Construirmanager.instance;
     agent.destination = GameObject.Find("villa").transform.position;
     vida_esqueleto    = vida_max;
     // animator.enabled = false;
 }
예제 #4
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("hay un erro :;v hay mas en la escena");
         return;
     }
     instance = this;
     monedas  = 300;
 }
예제 #5
0
//    bool puedeconstruir = true;



    private void Start()
    {
        construirmanager = Construirmanager.instance;  //   scrit gracias a que es estatico
    }