master
sangta 2024-04-23 14:11:23 +07:00
parent 205489ec0c
commit 1dced04a5a
2 changed files with 7 additions and 7 deletions

View File

@ -20,17 +20,17 @@ namespace GadGame.State.MainFlowState
Runner.SetState<IdleState>(); Runner.SetState<IdleState>();
return; return;
} }
if(!UdpSocket.Instance.DataReceived.OnVision) // if(!UdpSocket.Instance.DataReceived.OnVision)
{ // {
Runner.SetState<PassByState>(); // Runner.SetState<PassByState>();
return; // return;
} // }
if(!UdpSocket.Instance.DataReceived.Engage) if(!UdpSocket.Instance.DataReceived.Engage)
{ {
Runner.SetState<ViewedState>(); Runner.SetState<ViewedState>();
return; return;
} }
Runner.SetState<EngageState>(); Runner.SetState<PassByState>();
} }
} }

View File

@ -54,7 +54,7 @@ namespace GadGame.State
{ {
if (ActiveState != null) if (ActiveState != null)
{ {
Debug.Log(ActiveState); // Debug.Log(ActiveState);
_timer += Time.deltaTime; _timer += Time.deltaTime;
ActiveState.Update(_timer); ActiveState.Update(_timer);
} }