public static BuildingGS waitGameState(BuildingGS gs, int time) { BuildingGS endGS = new BuildingGS(gs); endGS.timePasses(time); return(endGS); }
private void tick() { // Simulate one tick of this game gameState.timePasses(1); displayAllResourceCount(); resourceDisplay.updateTick(); }
private void tick() { aiCurrentGameState.timePasses(1); for (int indexActor = 0; indexActor < noOfActors; indexActor++) { if (isTargetReached(indexActor)) { targetReached(indexActor); } } Debug.Log("Target reached bool: " + targetReachedBoolAi); updateAiResourceDisplay(); }