本文整理匯總了C#中UnityEngine.MonoBehaviour.StopCoroutine方法的典型用法代碼示例。如果您正苦於以下問題:C# MonoBehaviour.StopCoroutine方法的具體用法?C# MonoBehaviour.StopCoroutine怎麽用?C# MonoBehaviour.StopCoroutine使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UnityEngine.MonoBehaviour
的用法示例。
在下文中一共展示了MonoBehaviour.StopCoroutine方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Stop
public static void Stop(CanvasGroup group, MonoBehaviour script)
{
Coroutine current;
if (!_fades.TryGetValue(script, out current))
return;
script.StopCoroutine(current);
_fades.Remove(group);
}
示例2: PlayDelayed
public void PlayDelayed(MonoBehaviour coroutineObj, float delay)
{
coroutineObj.StopCoroutine(PLAY_AUDIO_SOURCE_STRING);
coroutineObj.StartCoroutine(PLAY_AUDIO_SOURCE_STRING, delay);
}
示例3: Play
public void Play(MonoBehaviour coroutineObj)
{
coroutineObj.StopCoroutine(PLAY_AUDIO_SOURCE_STRING);
coroutineObj.StartCoroutine(PLAY_AUDIO_SOURCE_STRING, 0);
}
示例4: Stop
public void Stop(MonoBehaviour monoBehaviour)
{
if (informCoroutine_ != null)
{
monoBehaviour.StopCoroutine(informCoroutine_);
informCoroutine_ = null;
}
}