public override void Remove(FormationManager.SlotAssignment slotAssignment) { positions.RemoveAt(slotAssignment.slotNumber); /*Debug.Log("removing " + slotAssignment.slotNumber); string str = "pattern: "; for(int i = 0; i < positions.Count; ++i) str += positions[i] + " "; Debug.Log(str);*/ }
public override void Add(FormationManager.SlotAssignment slotAssignment) { var v = getRandomVector(); positions.Add(v); /*string str = "pattern: "; for(int i = 0; i < positions.Count; ++i) str += positions[i] + " "; Debug.Log(str);*/ }
public override void Remove(FormationManager.SlotAssignment slotAssignment) { positions.RemoveAt(slotAssignment.slotNumber); }
public override void Add(FormationManager.SlotAssignment slotAssignment) { var pos = anchor.position + genPointInEclipse(a, b, c); positions.Add(pos - anchor.position); }
public override void Remove(FormationManager.SlotAssignment slotAssignment) { }
public override void Add(FormationManager.SlotAssignment slotAssignment) { float distance = UnityEngine.Random.Range(0f, length); distances.Add(distance); }
public PatternSteering(Entity _character, FormationManager _manager) { character = _character; manager = _manager; }
public abstract void Remove(FormationManager.SlotAssignment slotAssignment);
public abstract void Add(FormationManager.SlotAssignment slotAssignment);