本文整理汇总了C#中Run.Start方法的典型用法代码示例。如果您正苦于以下问题:C# Run.Start方法的具体用法?C# Run.Start怎么用?C# Run.Start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Run
的用法示例。
在下文中一共展示了Run.Start方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Every
public static Run Every(float aInitialDelay, float aDelay, System.Action aAction)
{
var tmp = new Run();
tmp.action = _RunEvery(tmp, aInitialDelay, aDelay, aAction);
tmp.Start();
return tmp;
}
示例2: After
public static Run After(float aDelay, System.Action aAction)
{
var tmp = new Run();
tmp.action = _RunAfter(tmp, aDelay, aAction);
tmp.Start();
return tmp;
}
示例3: EachFrame
public static Run EachFrame(System.Action aAction)
{
var tmp = new Run();
tmp.action = _RunEachFrame(tmp, aAction);
tmp.Start();
return tmp;
}
示例4: OnDelegate
public static Run OnDelegate(SimpleEvent aDelegate, System.Action aAction)
{
var tmp = new Run();
tmp.action = _RunOnDelegate(tmp, aDelegate, aAction);
tmp.Start();
return tmp;
}
示例5: Lerp
public static Run Lerp(float aDuration, System.Action<float> aAction)
{
var tmp = new Run();
tmp.action = _RunLerp(tmp, aDuration, aAction);
tmp.Start();
return tmp;
}
示例6: Coroutine
public static Run Coroutine(IEnumerator aCoroutine)
{
var tmp = new Run();
tmp.action = _Coroutine(tmp, aCoroutine);
tmp.Start();
return tmp;
}
示例7: GetResult
public override object GetResult(out int level)
{
level = 1;
ProjectInfo project = new ProjectInfo();
NProf.form.Project = project;
Profiler profiler = new Profiler();
//project.ApplicationName = @"D:\Meta\0.2\bin\Debug\Meta.exe";
//project.Arguments = "-test";
project.ApplicationName = Path.Combine(NProfDirectory, @"TestProfilee\bin\Debug\TestProfilee.exe");
run = project.CreateRun(profiler);
run.profiler.Completed += new EventHandler(profiler_Completed);
run.Start();
while (result == null)
{
Thread.Sleep(100);
}
return result;
}
示例8: ExecuteWhenDone
public Run ExecuteWhenDone(System.Action aAction)
{
var tmp = new Run();
tmp.action = _WaitFor(aAction);
tmp.Start();
return tmp;
}
示例9: OnGUI
public static Run OnGUI(float aDuration, System.Action aAction)
{
var tmp = new Run();
tmp.onGUIaction = aAction;
if (aDuration > 0.0f)
tmp.action = _RunAfter(tmp, aDuration, null);
else
tmp.action = null;
tmp.Start();
CoroutineHelper.Instance.Add(tmp);
return tmp;
}