public void init(UIStage uiStage, GameObject root, GameObject login) { this.uiStage = uiStage; this.stage = uiStage.gameObject; this.root = root; wechatAPI = stage.GetComponent <WechatHelper>(); TipsManager.getInstance().init(stage.transform); SceneManager.getInstance().init(root.transform, login); MicrophoneManager.getInstance().init(); SoundManager.getInstance(); //TODO 后面改 updateHelper = new UpdateHelper(); this.uiStage.StartCoroutine(updateHelper.updateCheck()); }
public void SetStage(UIStage _stage) { switch (_stage) { case UIStage.Lobby: CanvasLobby.transform.position = new Vector2(Screen.width / 2, Screen.height / 2); CanvasHUD.transform.position = new Vector2(4000.0f, 3000.0f);; CanvasHighScore.transform.position = new Vector2(4000.0f, 3000.0f); break; case UIStage.Highscore: CanvasHighScore.transform.position = new Vector2(Screen.width / 2, Screen.height / 2); CanvasHUD.transform.position = new Vector2(4000.0f, 3000.0f); CanvasLobby.transform.position = new Vector2(4000.0f, 3000.0f); break; case UIStage.HUD: CanvasHUD.transform.position = new Vector2(Screen.width / 2, Screen.height / 2); CanvasHighScore.transform.position = new Vector2(4000.0f, 3000.0f); CanvasLobby.transform.position = new Vector2(4000.0f, 3000.0f); break; } }
public WebWalletResultAction(Wallet wallet, bool isOpening, UIStage Stage) { this.IsOpening = isOpening; this.wallet = wallet; this.stage = Stage; }
public override void Awake() { base.Awake(); Instance = this; }