Exemplo n.º 1
0
        public override void Init(Character obj)
        {
            base.Init(obj);

            Range = new Vector2f(0, 0);
            StopAtWaypoints = true;
        }
Exemplo n.º 2
0
        public override void Init(Character obj)
        {
            base.Init(obj);

            Range = new Vector2f(10, 10);
        }
        public virtual void Init(Character obj)
        {
            Obj = obj;
            Obj.DefaultVelocityApplication = false;

            Target = null;
            Waypoint = new Vector2f(-1, -1);
            WaypointPath = new List<Vector2f>();

            Range = new Vector2f(100.0f, 100.0f);

            TickTimer = new Timer(500); // Thinks every 500ms
            TickTimer.AutoReset = false;
            TickTimer.Elapsed += Tick;
            TickTimer.Start();
        }