public void add(AiTankController a) { if (a.GetComponent <Scorer>()) { return; } Ais.Add(a); }
void Start() { controller = GetComponent <AiTankController>(); }
protected void OnEnable() { Ctrl = GetComponent <AiTankController>(); Motor = GetComponent <TankMotor>(); Sys.get().add(this); }