Skip to content

Commit 122d1fb

Browse files
committed
bug fix
1 parent d6fabc8 commit 122d1fb

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

app/Assets/KoganeUnityLib/Scripts/MultiTask.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public void Add( Action<Action> task )
3232
m_list.Add( task );
3333
}
3434

35+
/// <summary>
36+
/// タスクを追加します
37+
/// </summary>
38+
public void Add( string text, Action<Action> task )
39+
{
40+
Add( task );
41+
}
42+
3543
/// <summary>
3644
/// タスクを実行します
3745
/// </summary>
@@ -70,6 +78,14 @@ public void Play( Action onCompleted = null )
7078
}
7179
}
7280

81+
/// <summary>
82+
/// タスクを実行します
83+
/// </summary>
84+
public void Play( string text, Action onCompleted = null )
85+
{
86+
Play( onCompleted );
87+
}
88+
7389
/// <summary>
7490
/// この関数によって返されたIEnumeratorのMoveNext()を呼び出すことでカウントが減っていきます
7591
/// 呼び出すたびに指定した回数分まで <c>onUpdated</c> デリゲートを実行します
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 2018.3.9f1
1+
m_EditorVersion: 2018.3.11f1

0 commit comments

Comments
 (0)