update
parent
205489ec0c
commit
1dced04a5a
|
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue