public virtual void initializeModule(int idInput, Staging stagingInput, int seedInput, Vector3 originInput) { ModuleId = idInput; moduleRandom = new System.Random(seedInput); ModuleName = this.GetType().ToString(); rootStaging = stagingInput; ModuleSeed = seedInput; Origin = originInput; ag = rootStaging.ag; hg = rootStaging.hg; }
public void initializeGlobals() { try { ag = globalsObject.GetComponent <AnnGlobals>(); hg = globalsObject.GetComponent <HubGlobals>(); gg = globalsObject.GetComponent <GeneralGlobals>(); } catch (UnassignedReferenceException) { print("Global Object Empty"); } }
public void Awake() { isActive = false; rootUnit = gameObject.GetComponentInParent <Module.Unit>(); ag = rootUnit.rootModule.ag; neurons = new List <Neuron> [3]; for (int i = 0; i < 3; i++) { neurons[i] = new List <Neuron>(); } synapses = new List <Synapse>(); relayCatalog = new Dictionary <string, List <Relay> >(); }