public void Add(GameObject obj, int sight, float uslope, float dslope, VisionSignal signal) { agents.Add(obj); agentsRadius.Add(sight); agentsUSlope.Add(uslope); agentsDSlope.Add(dslope); agentsT.Add(obj.GetComponent <Transform>()); agentsAmount++; }
public void AddSignalAgent(GameObject obj, int sight, float uslope, float dslope, VisionSignal signal) { _signalAgentsFactions[FindFactionIndex(obj)].Add(obj, sight, uslope, dslope, signal); }