-
Notifications
You must be signed in to change notification settings - Fork 1
/
CoroutineUtility.cs
28 lines (28 loc) · 1.45 KB
/
CoroutineUtility.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//---------------------------------------------------------------------------------------------------------
// ▽ Submarine Mirage Framework for Unity
// Copyright (c) 2020 夢想海の水底より(from Seabed of Reverie)
// Released under the MIT License :
// https://github.com/FromSeabedOfReverie/SubmarineMirageFrameworkForUnity/blob/master/LICENSE
//---------------------------------------------------------------------------------------------------------
namespace SubmarineMirageFramework.Utility {
using System;
using System.Collections;
using Process;
///====================================================================================================
/// <summary>
/// ■ コルーチンの便利クラス
///----------------------------------------------------------------------------------------------------
/// </summary>
///====================================================================================================
static public class CoroutineUtility {
///------------------------------------------------------------------------------------------------
/// <summary>
/// ● 開始
/// CoroutineProcessクラスを簡単に呼べる。
/// </summary>
///------------------------------------------------------------------------------------------------
static public CoroutineProcess Start( IEnumerator coroutine, Action onCompleted = null ) {
return new CoroutineProcess( coroutine, onCompleted, true, true );
}
}
}