throws System.Action
I didn't get any error and had searched for a while and couldn't get an answer.unknown
csharp
a year ago
2.4 kB
30
Indexable
using System.Diagnostics; using System.Dynamic; using System.Net.Security; using System.Reflection; using System.Runtime.CompilerServices; using Microsoft.VisualBasic; //timer class class Timer(){ public int hours = Variables.hours; public int minutes = Variables.minutes; public string timer = Variables.timer; void CalcTime(){ if (minutes >= 60){ minutes = minutes - 60; hours ++; } } public void DisplayTime(){ timer = hours + "." + minutes; } } //GameMenu Class class GameMenu(){ Timer timer = new Timer(); void gSystem(){ Timer(); //These are long code Console.WriteLine("\nToilet System : " + timer.DisplayTime + situation); //output : "Toilet System : System.Actionpm... You had been locked in the toilet." without the quotation mark. void Timer(){ void Timer(){ if (timer.hours == 7 && timer.minutes < 30){ situation = "pm... You had been locked in the toilet."; } else if (timer.hours == 7 && timer.minutes < 59){ situation = "0pm... Try to catch up with sounds."; }else if (timer.hours == 8 && timer.minutes < 30){ situation = "0pm... You feel a bit fustrated."; }else if (timer.hours == 8 && timer.minutes < 35){ situation = "0pm... You heard a faint sound in the distance."; }else if (timer.hours == 8 && timer.minutes < 59){ situation = "pm... You heard footsteps outside of your toilet."; }else if (timer.hours == 9 && timer.minutes < 15){ situation = "pm... You heard footsteps again but far... but now you feel a bit panic."; }else if (timer.hours == 9 && timer.minutes < 30){ situation = "pm... The footsteps stop infront of your toilet."; }else if (timer.hours == 9 && timer.minutes < 45){ situation = "pm... You feel weather getting really cold and uncomfortable."; }else if (timer.hours == 9 && timer.minutes < 59){ situation = "pm... You get a very bad feeling about your situation."; }else if (timer.hours == 10){ situation = "pm........"; GameOver(); } } } } }
Editor is loading...
Leave a Comment