示例#1
0
 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++;
 }
示例#2
0
 public void AddSignalAgent(GameObject obj, int sight, float uslope, float dslope, VisionSignal signal)
 {
     _signalAgentsFactions[FindFactionIndex(obj)].Add(obj, sight, uslope, dslope, signal);
 }