Exemplo n.º 1
0
 private void OnDestroy()
 {
     if (Context.self == this)
     {
         Context.self              = null;
         Context.network           = null;
         Context.swallowInputCount = 0;
         Context.ui = null;
     }
 }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     if (self == this)
     {
         self              = null;
         network           = null;
         swallowInputCount = 0;
         ui = null;
     }
 }
Exemplo n.º 3
0
 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>();
 }
Exemplo n.º 4
0
 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>();
     }
 }
Exemplo n.º 5
0
 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());
 }
Exemplo n.º 6
0
 void Awake()
 {
     view = GetComponent <uLinkNetworkView>();
 }
Exemplo n.º 7
0
 private void OnDestroy()
 {
     if (Context.self == this)
     {
         Context.self = null;
         Context.network = null;
         Context.swallowInputCount = 0;
         Context.ui = null;
     }
 }
Exemplo n.º 8
0
 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>();
 }