示例#1
0
 public BirdTarget getNewBirdTarget(BirdTarget current)
 {
     BirdTarget target;
     while (true) {
         target = birdTargets[Random.Range(0, birdTargets.Length - 1)];
         if (target != current) {
             return target;
         }
     }
 }
示例#2
0
        public BirdTarget getNewBirdTarget(BirdTarget current)
        {
            BirdTarget target;

            while (true)
            {
                target = birdTargets[Random.Range(0, birdTargets.Length - 1)];
                if (target != current)
                {
                    return(target);
                }
            }
        }
示例#3
0
 private void GetNewTarget()
 {
     target = StageDriver.Instance.getNewBirdTarget(target);
     anim.SetBool("canIdle", target.isLanded);
 }