update
parent
205489ec0c
commit
1dced04a5a
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace GadGame.State
|
|||
{
|
||||
if (ActiveState != null)
|
||||
{
|
||||
Debug.Log(ActiveState);
|
||||
// Debug.Log(ActiveState);
|
||||
_timer += Time.deltaTime;
|
||||
ActiveState.Update(_timer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue