void armory() { int i; for (i=1; i<=dataBase.techCount; i++) { addItem (0); } sub = subMenuObject.GetComponent<menu> (); sub.subMenu(current); }