Esempio n. 1
0
        public static void SetDebugInfoActive(bool isActive)
        {
            if (DebugInfoObject == null)
            {
                return;
            }

            DebugInfoObject.SetActive(isActive);
        }
Esempio n. 2
0
        public CoreContext(MonoBehaviour view, bool autoStartup, GameObject debugInfoObject) : base(view, autoStartup)
        {
            _instance = this;

            ContextView = view;

            if (IsDebugMode)
            {
                DebugInfoObject = (GameObject)GameObject.Instantiate(debugInfoObject);
                DebugInfoObject.transform.parent = view.transform;
                DebugInfoObject.SetActive(false);
            }

            NetworkingCore = new NetworkingCore();
        }