Ejemplo n.º 1
0
    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());
        }
    }
Ejemplo n.º 2
0
    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());
        }
    }