public void UpdateResources(GameResourcesStorage storage) { for (int i = 0; i < GameResourcesStorage.resourceCount; ++i) { float resourceAmount = storage.getResourceAmount((GameResourceType)i); resourceCountTexts[i].text = ValueToText(resourceAmount); } }
void Start() { resouces = new GameResourcesStorage(); people = new People(); if (isFirstInColony) { people.AddPeople(50); objects.Add(new InBaseMoxie(this)); objects.Add(new InBaseVaporator(this)); } }
void Start() { // TODO // fill with coresponding initial values // hardcoded for now initialMarketStorage = new GameResourcesStorage(500); marketStorage = new GameResourcesStorage(500); for (int i = 0; i < GameResourcesStorage.resourceCount; ++i) { prices[i] = 500; initialPrices[i] = 500; } globalStorage = FindObjectOfType <GlobalStorage>(); }
private void Start() { globalStorage = GameObject.Find("GlobalStorage"); inventory = new GameResourcesStorage(); }