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>();
return;
}
if(!UdpSocket.Instance.DataReceived.OnVision)
{
Runner.SetState<PassByState>();
return;
}
// if(!UdpSocket.Instance.DataReceived.OnVision)
// {
// Runner.SetState<PassByState>();
// return;
// }
if(!UdpSocket.Instance.DataReceived.Engage)
{
Runner.SetState<ViewedState>();
return;
}
Runner.SetState<EngageState>();
Runner.SetState<PassByState>();
}
}

View File

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