Example #1
0
 public override Module activateModule()
 {
     base.activateModule();
     activeGarden = gardens[0];
     updateDisplay();
     return(this);
 }
Example #2
0
    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);
    }
Example #3
0
 public override void updateModuleFocus(Module moduleFocus)
 {
     activeGarden = moduleFocus as GardenModule;
 }