/// <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); } } }
/// <summary> /// Sets the entity this state belongs to. /// </summary> /// <param name="a_entity"> /// The entity this state belongs to. /// </param> public void SetEntity(UnderlingEntity a_entity) { m_entity = a_entity; }
/// <summary> /// Adds an entity to the formation. /// </summary> /// <param name="a_entity"> /// The entity to add. /// </param> public void AddUnderlingEntity(UnderlingEntity a_entity) { m_underlingUnits.Add(a_entity); }
public void RemoveDeadUnderling(UnderlingEntity a) { deadUnderlingEntities.Remove(a); }
public void PushToDeadUnderlings(UnderlingEntity a) { underlingEntities.Remove(a); deadUnderlingEntities.Add(a); }
public void RemoveUnderling(UnderlingEntity a) { underlingEntities.Remove(a); }
public void AddUnderling(UnderlingEntity a) { underlingEntities.Add(a); }
public void AddUnderlingUnit(UnderlingEntity a) { m_formationConfiguration.AddUnderlingEntity(a); }