void Start() { behaviourSystem = new BehaviourSystem(gameObject); rigidbody2d = gameObject.GetComponent <Rigidbody2D>(); stats = gameObject.GetComponent <Stats>(); //TODO: This should be moved outside this class StartFlocking(); }
void Start() { behaviourSystem = new BehaviourSystem(gameObject); rigidbody2d = gameObject.GetComponent<Rigidbody2D>(); stats = gameObject.GetComponent<Stats>(); //TODO: This should be moved outside this class StartFlocking(); }