public override bool NeedTransit() { List <Character> enemies = CharacterGroups.main.GetEnemies(Papuan); foreach (Character enemy in enemies) { if (Papuan.CouldSeeCharacter(enemy)) { Papuan.SetTargetEnemy(enemy); return(true); } } return(false); }
public override bool NeedTransit() { _timePassed += Time.deltaTime; return(Papuan.TargetEnemy == null || (_timePassed >= _delay && Papuan.CouldSeeCharacter(Papuan.TargetEnemy) == false)); }