Пример #1
0
    public static void NoLongerFlankLeftVisibleEnemy(EnemyTarget enemy)
    {
        AttackableObject <EnemyTarget> info = instance.targetsForAttack.Find(m => {
            return(m.GetObject() == enemy);
        });

        if (info == null)
        {
            Debug.LogError("No enemy target found!");
        }
        else
        {
            info.RemoveLeftFlanker();
        }
    }
Пример #2
0
    public static void NoLongerFlankLeftHiddenEnemy(EnemyMarker enemy)
    {
        AttackableObject <EnemyMarker> info = instance.markersForAttack.Find(m => {
            return(m.GetObject() == enemy);
        });

        if (info == null)
        {
            Debug.LogError("No enemy marker found!");
        }
        else
        {
            info.RemoveLeftFlanker();
        }
    }