Inheritance: UnityEngine.MonoBehaviour
Ejemplo n.º 1
0
 protected void Awake()
 {
     try
     {
         if (instance != null)
         {
             Destroy(this);
             return;
         }
         instance              = this;
         buildOverlayPartInfo  = this.gameObject.AddComponent <BuildOverlayPartInfo>();
         buildOverlayVessel    = this.gameObject.AddComponent <BuildOverlayVessel>();
         buildOverlayResources = this.gameObject.AddComponent <BuildOverlayResources>();
         Load();
     }
     catch (Exception ex)
     {
         MyLogger.Exception(ex);
     }
 }
Ejemplo n.º 2
0
 protected void Awake()
 {
     try
     {
         if (instance != null)
         {
             Destroy(this);
             return;
         }
         instance = this;
         buildOverlayPartInfo = this.gameObject.AddComponent<BuildOverlayPartInfo>();
         buildOverlayVessel = this.gameObject.AddComponent<BuildOverlayVessel>();
         buildOverlayResources = this.gameObject.AddComponent<BuildOverlayResources>();
         Load();
     }
     catch (Exception ex)
     {
         Logger.Exception(ex);
     }
 }