これはかなり面倒ですので、ご容赦ください。
私はC#が初めてなので、私の質問はばかげているかもしれません。
私が達成したいのはそのようなものです:
private void RivalAlive()
// The Function Should be alive for 10min - if the condition is performed then the function need to die (quit) immediately, also if the 10min has passed without the condition beeing performed the function will die.
{
if (SmallHour == 5) // if condition is performed it need to execute the code in the condition and quit the function
//Run Another Function Here
//End the RivalAlive Function
{
}
//If the Condition is False - keep with the loop every 1 sec till 10min has passed
}
どうもありがとう!