Exemplo n.º 1
0
        // Update is called once per frame
        private void Update()
        {
            if (IsFleeingTarget == false || Target == null)
            {
                return;
            }
            var accel = GetSteering(Target.position);

            _steeringBasics.Steer(accel);
            _steeringBasics.LookWhereYoureGoing();
        }
Exemplo n.º 2
0
        private void Update()
        {
            if (ArriveToTarget == false)
            {
                return;
            }

            var accel = GetSteering(Target.position);

            _steeringBasics.Steer(accel);
            _steeringBasics.LookWhereYoureGoing();
        }