public static void SetDebugInfoActive(bool isActive) { if (DebugInfoObject == null) { return; } DebugInfoObject.SetActive(isActive); }
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(); }