Пример #1
0
        void Start()
        {
            behaviourSystem = new BehaviourSystem(gameObject);
            rigidbody2d     = gameObject.GetComponent <Rigidbody2D>();
            stats           = gameObject.GetComponent <Stats>();

            //TODO: This should be moved outside this class
            StartFlocking();
        }
Пример #2
0
        void Start()
        {
            behaviourSystem = new BehaviourSystem(gameObject);
            rigidbody2d = gameObject.GetComponent<Rigidbody2D>();
            stats = gameObject.GetComponent<Stats>();

            //TODO: This should be moved outside this class
            StartFlocking();
        }