private void OnMouseDown() { //FISH //is there enough raw fish to cook? if (rL.Fish_Raw > 0) { //////////////// //THIS ALWAYS NEEDS TO BE CALLED ANY TIME THAT TIME PASSES IN GAME. COPY AND PASTE THIS INTO EVERY SINGLE ACTION rL.VillagerWork(); //THIS ALWAYS NEEDS TO BE CALLED ANY TIME THAT TIME PASSES IN GAME. COPY AND PASTE THIS INTO EVERY SINGLE ACTION //////////////// //Add to the hour count rL.HourCount = rL.HourCount + 2; //Add Cooked fish and delete Raw fish rL.Fish_Raw = rL.Fish_Raw - 1; rL.Fish_Cooked = rL.Fish_Cooked + 1; rL.PrintInfo(); } else { //print that you dont have enough resources print("You do not have enough Raw Fish!"); } //Game //is there enough raw game to cook? if (rL.Game_Raw > 0) { //////////////// //THIS ALWAYS NEEDS TO BE CALLED ANY TIME THAT TIME PASSES IN GAME. COPY AND PASTE THIS INTO EVERY SINGLE ACTION rL.VillagerWork(); //THIS ALWAYS NEEDS TO BE CALLED ANY TIME THAT TIME PASSES IN GAME. COPY AND PASTE THIS INTO EVERY SINGLE ACTION //////////////// //Add to the hour count rL.HourCount = rL.HourCount + 2; //Add Cooked fish and delete Raw game rL.Game_Raw = rL.Game_Raw - 1; rL.Game_Cooked = rL.Game_Cooked + 1; rL.PrintInfo(); } else { //print that you dont have enough resources print("You do not have enough Raw Game!"); } }
private void OnMouseDown() { //////////////// //THIS ALWAYS NEEDS TO BE CALLED ANY TIME THAT TIME PASSES IN GAME. COPY AND PASTE THIS INTO EVERY SINGLE ACTION rL.VillagerWork(); //THIS ALWAYS NEEDS TO BE CALLED ANY TIME THAT TIME PASSES IN GAME. COPY AND PASTE THIS INTO EVERY SINGLE ACTION //////////////// //Add to the hour count rL.HourCount = rL.HourCount + 2; //Gather Game rL.Game_Raw = rL.Game_Raw + 1; rL.PrintInfo(); }