static async Task Retrieve(ulong msgId) { var paras = new StatusParams { MsgId = msgId }; Console.WriteLine(await Client.Status(paras)); }
IEnumerator StartGame() { Object.Destroy(m_OpeningState.gameObject); yield return(new WaitForSeconds(0.2f)); StatusParams param = new StatusParams(); param.Set("Init", true); param.Set("Level", "Level1"); ChangeState <GameStateInGame>(param); }
IEnumerator GoToOpening() { Object.Destroy(UIGameState); Object.Destroy(UITitle); Object.Destroy(Level1); yield return(new WaitForSeconds(0.2f)); StatusParams param = new StatusParams(); ChangeState <GameStateOpening>(); }
public override void OnEnter(StatusParams param = null) { m_OpeningState = Utility.LoadTimeline("OpenningStage"); //if (loadUI) //{ GameManager.StatusBar = Utility.CreateUI("UIGameState").GetComponent <StatusBar>(); GameManager.StatusBar.transform.SetParent(GameManager.UICanvas.transform, false); //} // new EnumTimer(() => { StartCoroutine(StartGame()); }, 5f).StartTimeout(); new EnumTimer(() => { StartCoroutine(StartGame()); }, 1f).StartTimeout(); }
public override void OnEnter(StatusParams param = null) { // Load Title UIGameState = Utility.CreateUI("UIGameState"); UIGameState.transform.SetParent(GameManager.UICanvas.transform, false); GameManager.StatusBar = UIGameState.GetComponent <StatusBar>(); UITitle = Utility.CreateUI("UITitle"); UITitle.transform.SetParent(GameManager.InGameUICanvas.transform, false); // Load Level1 Level1 = Utility.LoadLevel("Level1"); InGameVars.Init(); GameManager.input.m_start = PressStart; }
public ReservationState State(int?id, [FromUri] StatusParams param) { Func <GuestClaim, bool> func = null; if (!id.HasValue) { throw new ArgumentNullExceptionWithCode(110, "id"); } if (param == null) { throw new ArgumentNullException("param"); } WebPartner partner = UserToolsProvider.GetPartner(param); ReservationState result = BookingProvider.GetReservationState(param.Language, id.Value); ReservationState result2; if (result != null && result.claimId.HasValue) { if (param.PartnerSessionID != null && result.partner != null && result.partner.id == partner.id) { result2 = result; return(result2); } if (WebSecurity.CurrentUserId > 0) { System.Collections.Generic.List <GuestClaim> claims = GuestProvider.GetLinkedClaims(param.Language, WebSecurity.CurrentUserId); bool arg_10E_0; if (claims != null) { arg_10E_0 = (claims.FirstOrDefault((GuestClaim m) => m.claim == result.claimId.Value) == null); } else { arg_10E_0 = true; } if (!arg_10E_0) { result2 = result; return(result2); } } } return(null); }
public override void OnEnter(StatusParams param = null) { //Init A Game object Init = param.Get("Init"); //Level PrefabName if (param.Get <string>("Level") != null) { m_levelPrefabName = param.Get <string>("Level"); } if (Init != null) { if ((bool)Init) { InitLevel(); } } //Set StartButton GameManager.input.m_start += PauseGame; }
public static void ChangeState <T>(StatusParams param = null) where T : IGameState, new() { if (m_GameState != null) { if (m_GameState.GetType() == typeof(T)) { return; } m_GameState.OnLeave(); m_LastGameState = m_GameState; } IGameState tryGetState; if (m_statusStore.TryGetValue(typeof(T), out tryGetState)) { m_GameState = tryGetState; } else { m_GameState = new T(); m_statusStore[typeof(T)] = m_GameState; } m_GameState.OnEnter(param); }
public static extern int Status(IntPtr device, int cmd, int flags, ref StatusParams p);
public void ChangeState <T> (StatusParams param = null) where T : IGameState, new () { GameStatus.ChangeState <T> (param); }
public virtual void OnEnter(StatusParams param = null) { // Debug.Log ("EnterState:" + this.ToString ()); }