Beispiel #1
0
        public void SwitchToNextTargetPriority()
        {
            int nextPrior = (int)targetPriority + 1;

            if (nextPrior >= 5)
            {
                nextPrior = 0;
            }
            targetPriority = (_TargetPriority)nextPrior;
        }
Beispiel #2
0
        public virtual void IterateTargetPriority(int i = 1)
        {
            int nextPrior = (int)targetPriority + i;

            if (nextPrior >= 5)
            {
                nextPrior = 0;
            }
            if (nextPrior < 0)
            {
                nextPrior = 4;
            }
            targetPriority = (_TargetPriority)nextPrior;
        }
Beispiel #3
0
 public bool SetTargetPriority(_TargetPriority priority)
 {
     if(targetingArea==_TargetingArea.StraightLine) return false;
     targetPriority=priority;
     return true;
 }
Beispiel #4
0
 public void SwitchToNextTargetPriority()
 {
     int nextPrior=(int)targetPriority+1;
     if(nextPrior>=5) nextPrior=0;
     targetPriority=(_TargetPriority)nextPrior;
 }
Beispiel #5
0
 public bool SetTargetPriority(_TargetPriority priority)
 {
     targetPriority=priority;
     return true;
 }