//locate and cache a pointer to the resource manager void updateReferences() { overlord = GameObject.FindGameObjectWithTag("master").GetComponent <Overlord>(); resCore = overlord.resourceCore; itemMagr = overlord.resourceCore.itemSlice; resMgr = resCore.resourceSlice; pls = overlord.requestPlayerList(); }
} //return the requested player script via id //the resource manager will be dormant until this is called. public void activate() { //TEMPORARY: configure rate settings here multiplier = 1; difficulty = 1; //set the item manager itemMgr = overlord.resourceCore.itemSlice; //initialize and zero the float holding array time hubHoldTimes = new float[pls.Length]; zeroHubTimes(); //set the first tick and activate nextTick = Time.time + tickLength; active = true; }