Inheritance: UnityEngine.MonoBehaviour
示例#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);
     }
 }
示例#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);
     }
 }