Ejemplo n.º 1
0
        private IEnumerator RepairKitConfirmModeEnter()
        {
            GameObject Instance = Util.Instantiate(Prefab_RepairKitConfim, base.transform.parent.gameObject);

            repairKitConfim = Instance.GetComponent <StrategyRepairKitConfirm>();
            RepairMng       = new RepairManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId);
            RepairDockModel[] dockModels = RepairMng.GetDocks();
            for (int i = 0; i < RepairMng.GetDocks().Length; i++)
            {
                if (dockModels[i].GetShip() != null && dockModels[i].GetShip().MemId == FocusBanner.ShipModel.MemId)
                {
                    repairDockModel = dockModels[i];
                    break;
                }
            }
            if (repairDockModel == null)
            {
                ModeProcessor.ChangeMode(0);
                yield break;
            }
            repairKitConfim.SetModel(repairDockModel, RepairMng.Material.RepairKit);
            repairKitConfim.SetOnSelectPositive(OnDesideRepairKit);
            repairKitConfim.SetOnSelectNeagtive(OnCancelRepairKit);
            yield return(new WaitForEndOfFrame());

            repairKitConfim.Open();
            yield return(null);
        }
Ejemplo n.º 2
0
 private void OnDestroy()
 {
     ShipStates               = null;
     key                      = null;
     FocusBanner              = null;
     SupplyMng                = null;
     RepairMng                = null;
     OrganizeMng              = null;
     ModeProcessor            = null;
     dialogKeyController      = null;
     repairDockModel          = null;
     Prefab_RepairConfim      = null;
     repairConfim             = null;
     Prefab_RepairKitConfim   = null;
     repairKitConfim          = null;
     Prefab_OrganizeDetailMng = null;
     Prefab_OrganizeList      = null;
     OrganizeDetailMng        = null;
     DeckNoIcon               = null;
     DeckNoLabel              = null;
     ListSelectShipModel      = null;
     CurrentDeck              = null;
 }