private void OnDestroy() { if (Context.self == this) { Context.self = null; Context.network = null; Context.swallowInputCount = 0; Context.ui = null; } }
private void OnDestroy() { if (self == this) { self = null; network = null; swallowInputCount = 0; ui = null; } }
private void Awake() { if (Context.self && Context.self != this) { Debug.LogError("More than one", this); return; } Context.self = this; Context.network = base.GetComponent <uLinkNetworkView>(); Context.ui = base.GetComponent <ContextUI>(); }
private void Awake() { if ((self != null) && (self != this)) { Debug.LogError("More than one", this); } else { self = this; network = base.GetComponent <uLinkNetworkView>(); ui = base.GetComponent <ContextUI>(); } }
private static void OnResourcesLoaded() { BaseTraitMap[] baseTraitMapArray = Bundling.LoadAll <BaseTraitMap>(); for (int i = 0; i < (int)baseTraitMapArray.Length; i++) { BaseTraitMap baseTraitMap = baseTraitMapArray[i]; if (baseTraitMap) { try { Binder.BindMap(baseTraitMap); } catch (Exception exception) { UnityEngine.Debug.LogError(exception, baseTraitMap); } } } DatablockDictionary.Initialize(); NetMainPrefab[] netMainPrefabArray = Bundling.LoadAll <NetMainPrefab>(); for (int j = 0; j < (int)netMainPrefabArray.Length; j++) { NetMainPrefab netMainPrefab = netMainPrefabArray[j]; try { netMainPrefab.Register(true); } catch (Exception exception1) { UnityEngine.Debug.LogException(exception1, netMainPrefab); } } uLinkNetworkView[] uLinkNetworkViewArray = Bundling.LoadAll <uLinkNetworkView>(); for (int k = 0; k < (int)uLinkNetworkViewArray.Length; k++) { uLinkNetworkView _uLinkNetworkView = uLinkNetworkViewArray[k]; try { NetCull.RegisterNetAutoPrefab(_uLinkNetworkView); } catch (Exception exception2) { UnityEngine.Debug.LogException(exception2, _uLinkNetworkView); } } NGC.Register(NGCConfiguration.Load()); }
void Awake() { view = GetComponent <uLinkNetworkView>(); }
private void OnDestroy() { if (Context.self == this) { Context.self = null; Context.network = null; Context.swallowInputCount = 0; Context.ui = null; } }
private void Awake() { if (Context.self && Context.self != this) { Debug.LogError("More than one", this); return; } Context.self = this; Context.network = base.GetComponent<uLinkNetworkView>(); Context.ui = base.GetComponent<ContextUI>(); }