常用方法
常用方法
常用方法
常用方法
void Update() { if (IsActive) //in order for the building to generate resources, it must be built. { for (int i = 0; i < generators.Length; i++) { if (generators[i].OnProductionUpdate(building) == true) //update the production of the resources, if return value is true then this is maxed out for the first time { CustomEvents.OnResourceGeneratorFull(this, i); } } } }