Beispiel #1
0
 /// <summary>
 /// Adds an entity to the formation.
 /// </summary>
 /// <param name="a_entity">
 /// The entity to remove.
 /// </param>
 public void RemoveUnderlingEntity(UnderlingEntity a_entity)
 {
     m_underlingUnits.Remove(a_entity);
     if (m_underlingUnits.Count == 0)
     {
         if (a_entity.GetLeader() != Finder.GetPlayer())
         {
             GameObject.Destroy(gameObject);
         }
     }
 }