void Start() { _unit = GetComponentInParent <SimplePropagator> (); _eye = GetComponent <SphereCollider> (); _eye.radius = unitProperties.range; _initHp = unitProperties.hp; }
public void DeadPropagator(SimplePropagator p, string type, int squad_no) { bool found = false; for (int i = 0; i < lowLevelMaps.Length; ++i) { if (type == lowLevelMaps[i].name) { _lowLevelIMs[squad_no][i].DeadUnit(p); found = true; break; } } if (!found) { print("Err: Type not found for dead: " + type); } }
public void DeadUnit(SimplePropagator p) { _influenceMap.DeletePropagator(p); }
public void RegisterPropagator(SimplePropagator p) { _influenceMap.RegisterPropagator(p); }
public void DeletePropagator(SimplePropagator p) { _propagators.Remove(p); }
public void RegisterPropagator(SimplePropagator p) { _propagators.Add(p); }