예제 #1
0
    // Use this for initialization
    void Start()
    {
        _inputManager = this.gameObject.GetComponent <InputManager> ();
        _timeManager  = this.gameObject.GetComponent <TimeManager> ();

        _gachaCtrl      = _UI_group_gacha.GetComponent <GachaCtrl> ();
        _screenShotCtrl = this.gameObject.GetComponent <ScreenShotCtrl> ();

        // UI Ctrl初期化
        _screenCtrl = GameObject.Find("UI").GetComponent <ScreenCtrl> ();
        _screenCtrl.Init(_UI_group_title.transform.position);

        // SceneCtrl初期化
        _resultSceneCtrl = _UI_group_result.GetComponent <ResultSceneCtrl>();
        _objWrongReason  = _labelWrongReason.transform.parent.gameObject;

        // Review初期化
        _reviewRequestCtrl = this.gameObject.GetComponent <ReviewRequestCtrl>();

        // Sound初期化
        _audioManager = this.transform.GetComponentInChildren <AudioManager>();
        setSound(false);          // MUTE ONで初期化

        // Ad初期化
        _adCtrl = this.transform.GetComponentInChildren <AdvertisementCtrl> ();

        state   = GameState.TITLE;
        _UI_now = _UI_group_title;
    }
예제 #2
0
        private void OnTimedEvent(Object source, ElapsedEventArgs e)
        {
            ScreenCtrl sCtrl = new ScreenCtrl();

            if (sCtrl.GetConfig("http://" + IP + ":" + Port))
            {
                Init_WebSocket(BranchCode, IP, UserId, Port);
                aTimer.Enabled = false;
                aTimer         = null;
            }
        }