Exemplo n.º 1
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Releases(ref mTextures_Preload);
     UserInterfacePortManager.ReleaseUtils.Release(ref backGroundUpperSteelFrame);
     UserInterfacePortManager.ReleaseUtils.Release(ref backGroundLowerSteelFrame);
     mCamera_TouchEventCatch = null;
     mPrefab_PortUpgradesConvertShipManager_KaizouAnimation           = null;
     mPrefab_PortUpgradesModernizeShipManager_KindaikakaishuAnimation = null;
     mUIRemodelHeader                = null;
     mUIRemodelShipSlider            = null;
     mUIRemodelShipStatus            = null;
     mUIRemodelLeftShipStatus        = null;
     mUIRemodelStartRightInfo        = null;
     mUIRemodelEquipSlotItems        = null;
     mUIRemodelModeSelectMenu        = null;
     mUIRemodelDeckSwitchManager     = null;
     mUIRemodelModernization         = null;
     mUIRemodelKaizou                = null;
     mUIRemodelEquipListParent       = null;
     mUIRemodelSlotItemChangePreview = null;
     mCategoryMenu = null;
     mUIRemodeModernizationShipTargetListParentNew = null;
     mUIRemodelModernizationStartConfirm           = null;
     mUIRemodelOtherShipPickerParent = null;
     commonDeckSwitchManager         = null;
     mUIRemodelCurrentSlot           = null;
     mUIHowTo                      = null;
     okBauxiteUseMessage           = null;
     okBauxiteUseHighCostMessage   = null;
     ngBauxiteShortMessage         = null;
     ngBausiteShortHighCostMessage = null;
     mUIDisplaySwipeEventRegion    = null;
     instance                      = null;
 }
 public void SetManagerReference()
 {
     try
     {
         manager = ((Component)base.transform.parent.parent).GetComponent <PortUpgradesConvertShipManager>();
     }
     catch (NullReferenceException)
     {
         Debug.Log("../.. not found in PortUpgradesConvertShipSnowflake.cs");
     }
     if (manager == null)
     {
         Debug.Log("PortUpgradesConvertShipManager.cs is not attached to ../..");
     }
 }
 public void Awake()
 {
     try
     {
         this.manager = base.get_transform().get_parent().get_parent().GetComponent <PortUpgradesConvertShipManager>();
     }
     catch (NullReferenceException)
     {
         Debug.Log("../.. not found in PortUpgradesConvertShipReturnButton.cs");
     }
     if (this.manager == null)
     {
         Debug.Log("PortUpgradesConvertShipManager.cs is not attached to ../..");
     }
     this.cog = base.get_transform().GetChild(1).get_gameObject();
     if (this.cog == null)
     {
         Debug.Log("/Cog not found in ReceiveShipNextButton.cs");
     }
     try
     {
         this.cog.GetComponent <UISprite>().alpha = 0f;
     }
     catch (NullReferenceException)
     {
         Debug.Log("UISprite.cs is not attached to /Cog");
     }
     try
     {
         base.get_transform().GetChild(0).GetComponent <UISprite>().alpha = 0f;
     }
     catch (NullReferenceException)
     {
         Debug.Log("UISprite.cs is not attached to /Inner");
     }
     this.active        = false;
     this.keyController = new KeyControl(0, 0, 0.4f, 0.1f);
 }
 public void Awake()
 {
     try
     {
         manager = ((Component)base.transform.parent.parent).GetComponent <PortUpgradesConvertShipManager>();
     }
     catch (NullReferenceException)
     {
         Debug.Log("../.. not found in PortUpgradesConvertShipReturnButton.cs");
     }
     if (manager == null)
     {
         Debug.Log("PortUpgradesConvertShipManager.cs is not attached to ../..");
     }
     cog = base.transform.GetChild(1).gameObject;
     if (cog == null)
     {
         Debug.Log("/Cog not found in ReceiveShipNextButton.cs");
     }
     try
     {
         cog.GetComponent <UISprite>().alpha = 0f;
     }
     catch (NullReferenceException)
     {
         Debug.Log("UISprite.cs is not attached to /Cog");
     }
     try
     {
         ((Component)base.transform.GetChild(0)).GetComponent <UISprite>().alpha = 0f;
     }
     catch (NullReferenceException)
     {
         Debug.Log("UISprite.cs is not attached to /Inner");
     }
     active        = false;
     keyController = new KeyControl();
 }
Exemplo n.º 5
0
        private IEnumerator StartGradeUpProductionCoroutine(ShipModel targetShipModel, KeyControl keyController, Action OnFinishedAnimation)
        {
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
            PortUpgradesConvertShipManager kaizouAnimation = Util.Instantiate(mPrefab_PortUpgradesConvertShipManager_KaizouAnimation.gameObject, base.gameObject).GetComponent <PortUpgradesConvertShipManager>();

            kaizouAnimation.SetKeyController(keyController);
            kaizouAnimation.transform.localPosition = new Vector3(0f, 0f, 0f);
            kaizouAnimation.transform.localScale    = new Vector3(1f, 1f, 1f);
            kaizouAnimation.enabled = true;
            kaizouAnimation.Initialize(targetShipModel, 2, 5, 1);
            while (!kaizouAnimation.isFinished)
            {
                yield return(null);
            }
            if (OnFinishedAnimation != null)
            {
                UnityEngine.Object.Destroy(kaizouAnimation.gameObject);
                OnFinishedAnimation();
                SingletonMonoBehaviour <FadeCamera> .Instance.FadeIn(0.2f, delegate
                {
                    SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
                });
            }
        }
 private void OnDestroy()
 {
     this.manager       = null;
     this.cog           = null;
     this.keyController = null;
 }
 private void OnDestroy()
 {
     manager       = null;
     cog           = null;
     keyController = null;
 }