public override Module activateModule() { base.activateModule(); activeGarden = gardens[0]; updateDisplay(); return(this); }
protected GardenModule addGarden() { GameObject moduleObject = Tools.makeObject("Garden " + gardens.Count.ToString(), gameObject); moduleObject.transform.SetParent(gameObject.transform); GardenModule mod = moduleObject.AddComponent <GardenModule>(); mod.buildModule(rootDirector, this, gardens.Count, new Vector3(0, -30 * gardens.Count, 0), totalGenerations, totalUnits); mod.activateModule(); return(mod); }
public override void updateModuleFocus(Module moduleFocus) { activeGarden = moduleFocus as GardenModule; }