public void Move()
        {
            this.quantMove++;
            while (this.actualMove < this.qtyMove)
            {
                Vector2 vector  = this.playerPos[this.actualMove];
                Vector2 vector2 = this.endPos[this.actualMove];
                if (this.qtyMove <= 0)
                {
                    break;
                }
                this.actualMove++;
                int order = actionOrder.addOrder();

                Task task = new Task(this.SmoothMovement(vector, vector2, order), true);
            }
        }
Esempio n. 2
0
        public void Attack()
        {
            int order = actionOrder.addOrder();

            new Task(this.attackAnyDir(order), true);
        }