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