Esempio n. 1
0
        public virtual void BehaviorUpdate()
        {
            GetTarget();
            Vector2 next = LocationUtilities.NextLocation(Combatant.transform.position, Target.transform.position, Combatant.speed);

            RB.MovePosition(next);
        }
Esempio n. 2
0
        public void BehaviorUpdate()
        {
            Vector2 v = LocationUtilities.NextLocation(Combatant.transform.position, Node.transform.position, Combatant.speed);

            rb.MovePosition(v);
        }