public static int GetLeftFlankersOnVisibleEnemy( EnemyTarget target ) { AttackableObject <EnemyTarget> info = instance.targetsForAttack.Find(m => { return(m.GetObject() == target); }); if (info == null) { Debug.LogError("No enemy target found!"); return(0); } else { return(info.GetLeftFlankers()); } }
public static int GetLeftFlankersOnHiddenEnemy( EnemyMarker target ) { AttackableObject <EnemyMarker> info = instance.markersForAttack.Find(m => { return(m.GetObject() == target); }); if (info == null) { Debug.LogError("No enemy marker found!"); return(0); } else { return(info.GetLeftFlankers()); } }