UUUUUUUUUUUUUUUUH
This commit is contained in:
1 parent
e8393a28ad
commit
f0bb83c869
110 files changed
+55065
-21232
No files matched your search
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.Infrastructure.StateMachine
|
||||
{
|
||||
@@ -37,6 +38,8 @@ namespace Code.Infrastructure.StateMachine
|
||||
var newState = States[nextState];
|
||||
await newState.EnterState();
|
||||
|
||||
Debug.Log($"Switched from {CurrentState} to {nextState}");
|
||||
|
||||
CurrentBaseState = newState;
|
||||
CurrentState = nextState;
|
||||
NextState = default;
|
||||
|
||||
Reference in new issue
Block a user