Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     rb2d       = GetComponent <Rigidbody2D>();
     controller = GetComponent <CarnivoreController>();
     angle      = Random.Range(0, 360);
     InvokeRepeating("Perceive", 0.0f, 0.3f);
     InvokeRepeating("Reproduce", 10.0f, 20.0f);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     rb2d       = GetComponent <Rigidbody2D>();
     controller = GetComponent <CarnivoreController>();
 }