Пример #1
0
        public virtual void Awake()
        {
            if (ConfigState.Instance.UseVerboseLogging)
            {
                Debug.Log("Base Scene Controller Awake");
            }

            MessageInterface = new QdmsMessageInterface(this.gameObject);
            MessageInterface.SubscribeReceiver((m) => HandleMessage(m));

            Current = this;
            if (AutoinitUi)
            {
                InitUI();
            }
            if (AutoinitHud)
            {
                InitHUD();
            }

            //mostly an editor hack
            if (AutoinitState && (!GameState.Exists || !GameState.Instance.InitialLoaded))
            {
                GameState.LoadInitial();
                CCBase.OnGameStart();
            }
        }
Пример #2
0
        public override void Awake()
        {
            base.Awake();

            MessageInterface = new QdmsMessageInterface(this.gameObject);
            MessageInterface.SubscribeReceiver(HandleMessage);
        }
Пример #3
0
 private void Start()
 {
     MessageInterface = new QdmsMessageInterface(this.gameObject);
     MessageInterface.SubscribeReceiver(HandleMessageReceived);
     SetStateFromConfig();
 }
Пример #4
0
 private void Awake()
 {
     MessageInterface = new QdmsMessageInterface(this.gameObject);
     MessageInterface.SubscribeReceiver(HandleMessage);
 }
Пример #5
0
 private void Awake()
 {
     MessageInterface = new QdmsMessageInterface(gameObject);
     MessageInterface.KeepMessagesInQueue = false;
     MessageInterface.SubscribeReceiver(HandleMessageReceived);
 }