summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-05-16 16:03:51 +0800
committerchai <215380520@qq.com>2023-05-16 16:03:51 +0800
commit2afbb545027568fccc85853e18af02a7c6b2929e (patch)
tree3827873af133fe9f81041e4babbfd0d54a53f9d1 /WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs
parent88f739ea0f3440152082f34707e79328a71aabed (diff)
*misc
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs b/WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs
index 605f737..67c791d 100644
--- a/WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs
+++ b/WorldlineKeepers/Assets/Scripts/Tools/Statemachine/AsyncStatemachine.cs
@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
-using MEC;
+using MovementEffects;
namespace WK
{
@@ -43,7 +43,7 @@ namespace WK
return NULL_STATE_ID;
if (stateIDDistributor + 1 >= int.MaxValue)
{
- Debug.LogError("״̬»úÌí¼Ó״̬ʧ°Ü£¬´Ë״̬»úÖÐÌí¼ÓµÄ״̬¹ý¶à");
+ LogHelper.LogError("״̬»úÌí¼Ó״̬ʧ°Ü£¬´Ë״̬»úÖÐÌí¼ÓµÄ״̬¹ý¶à");
return NULL_STATE_ID;
}
++stateIDDistributor;
@@ -54,7 +54,7 @@ namespace WK
allState.Add(stateIDDistributor, newState);
return stateIDDistributor;
}
- Debug.LogError("״̬»úÌí¼Ó״̬ʧ°Ü£¬×´Ì¬ÒѾ­´æÔÚ");
+ LogHelper.LogError("״̬»úÌí¼Ó״̬ʧ°Ü£¬×´Ì¬ÒѾ­´æÔÚ");
return NULL_STATE_ID;
}
@@ -64,7 +64,7 @@ namespace WK
{
return RemoveState(state.stateID);
}
- Debug.LogError("״̬»úɾ³ý״̬ʧ°Ü£¬×´Ì¬Îª¿Õ");
+ LogHelper.LogError("״̬»úɾ³ý״̬ʧ°Ü£¬×´Ì¬Îª¿Õ");
return false;
}
@@ -75,7 +75,7 @@ namespace WK
allState.Remove(stateID);
return true;
}
- Debug.LogError("״̬»úɾ³ý״̬ʧ°Ü£¬¸Ã״̬²»´æÔÚ£¬stateID = " + stateID);
+ LogHelper.LogError("״̬»úɾ³ý״̬ʧ°Ü£¬¸Ã״̬²»´æÔÚ£¬stateID = " + stateID);
return false;
}
@@ -147,7 +147,7 @@ namespace WK
{
isUpdateActive = false;
CoroutineHandle handle = Timing.RunCoroutine(EndState(curStateID));
- while (handle.IsValid)
+ while (handle.IsRunning)
{
yield return Timing.WaitForSeconds(COROUINT_DELTIME);
}
@@ -155,7 +155,7 @@ namespace WK
if (!skipStartFunc)
{
CoroutineHandle handle2 = Timing.RunCoroutine(StartState(curStateID));
- while (handle2.IsValid)
+ while (handle2.IsRunning)
{
yield return Timing.WaitForSeconds(COROUINT_DELTIME);
}
@@ -215,7 +215,7 @@ namespace WK
if (state != null)
{
CoroutineHandle handle = Timing.RunCoroutine(state.OnStart());
- while (handle.IsValid)
+ while (handle.IsRunning)
{
yield return Timing.WaitForSeconds(COROUINT_DELTIME);
}
@@ -231,7 +231,7 @@ namespace WK
if (state != null)
{
CoroutineHandle handle = Timing.RunCoroutine(state.OnEnd());
- while (handle.IsValid)
+ while (handle.IsRunning)
{
yield return Timing.WaitForSeconds(COROUINT_DELTIME);
}