public override void Update(FlowNode_MultiPlayEnterLobby self) { MyPhoton instance = PunMonoSingleton <MyPhoton> .Instance; if (!((Behaviour)self).get_enabled()) { return; } switch (instance.CurrentState) { case MyPhoton.MyState.CONNECTING: break; case MyPhoton.MyState.LOBBY: if (!instance.IsRoomListUpdated) { break; } self.Success(); break; default: if (!instance.IsDisconnected() || this.ReqConnect(self, true)) { break; } self.Failure(); break; } }
public override void Begin(FlowNode_MultiPlayEnterLobby self) { if (this.ReqConnect(self, true)) { return; } self.Failure(); }