예제 #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);
         }
     }
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 public void RemoveDeadUnderling(UnderlingEntity a)
 {
     deadUnderlingEntities.Remove(a);
 }
예제 #5
0
 public void PushToDeadUnderlings(UnderlingEntity a)
 {
     underlingEntities.Remove(a);
     deadUnderlingEntities.Add(a);
 }
예제 #6
0
 public void RemoveUnderling(UnderlingEntity a)
 {
     underlingEntities.Remove(a);
 }
예제 #7
0
 public void AddUnderling(UnderlingEntity a)
 {
     underlingEntities.Add(a);
 }
예제 #8
0
 public void AddUnderlingUnit(UnderlingEntity a)
 {
     m_formationConfiguration.AddUnderlingEntity(a);
 }