Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     graveyard = GameObject.Find("Graveyard");
     //rig = GetComponent<Rigidbody2D>();
     sur = GetComponent<Surviving>();
     sirch = GetComponent<Sirching>();
     mooving = GetComponent<MoveForward>();
     Decreser = mooving.maxSpeed / 2;
     tired = true;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     surv = GetComponent<Surviving>();
     mooving = GetComponent<MoveForward>();
   //  foodSpawner = GameObject.Find("FoodSpawner").transform;
 }