// 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); }
// Use this for initialization void Start() { rb2d = GetComponent <Rigidbody2D>(); controller = GetComponent <CarnivoreController>(); }