Пример #1
0
        private void OnDestroy()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                DOTween.Kill(this, false);
            }
            this.Models = null;
            this.ViewsDefaultLocalPosition = null;
            this.Views     = null;
            this.ViewFocus = (View)((object)null);
            this.mPrefab_UIScrollListChild  = (View)((object)null);
            this.mUIDisplaySwipeEventRegion = null;
            this.mGridContaints             = null;
            this.mUIScrollListParentAction  = null;
            this.mUIScrollListParentCheck   = null;
            this.mKeyController             = null;
        }
 private void OnDestroy()
 {
     if (DOTween.IsTweening(this))
     {
         DOTween.Kill(this);
     }
     mArrow_Left  = null;
     mArrow_Right = null;
     mUIBattleFormationKindSelector             = null;
     mUIDisplaySwipeEventRegion_FormationChange = null;
     mLabel_Formation_Center       = null;
     mLabel_Formation_Right        = null;
     mLabel_Formation_Left         = null;
     mLabel_Formation_Temp         = null;
     mWidget_FormationSelecteNames = null;
     mLabelCenter = null;
     mLabelRight  = null;
     mLabelLeft   = null;
     mLabelTemp   = null;
     mUIBattleFormationKindSelectManagerAction = null;
 }
 private void OnDestroy()
 {
     this.ENSEI          = null;
     this.EscortOrganize = null;
     this.mPrefab_UserInterfacePracticeManager = null;
     this.mUserInterfacePracticeManager        = null;
     this.sttm                = null;
     this.sailSelect          = null;
     this.CommandMenu         = null;
     this.LogicMng            = null;
     this.ShipNumberLabel     = null;
     this.areaModel           = null;
     this.warningPanel        = null;
     this.InfoRoot            = null;
     this.MapRoot             = null;
     this.OverView            = null;
     this.OverSceneObject     = null;
     this.StopExpeditionPanel = null;
     this.keyController       = null;
     this.SwipeEvent          = null;
     this.StopExpeditionPanel = null;
 }
Пример #4
0
 private void OnDestroy()
 {
     ENSEI          = null;
     EscortOrganize = null;
     mPrefab_UserInterfacePracticeManager = null;
     mUserInterfacePracticeManager        = null;
     sttm                = null;
     sailSelect          = null;
     CommandMenu         = null;
     LogicMng            = null;
     ShipNumberLabel     = null;
     areaModel           = null;
     warningPanel        = null;
     InfoRoot            = null;
     MapRoot             = null;
     OverView            = null;
     OverSceneObject     = null;
     StopExpeditionPanel = null;
     keyController       = null;
     SwipeEvent          = null;
     StopExpeditionPanel = null;
 }
 private void OnDestroy()
 {
     OnCallDestroy();
     models         = null;
     defaultViewPos = null;
     if (views != null)
     {
         for (int i = 0; i < views.Length; i++)
         {
             if ((UnityEngine.Object)views[i] != (UnityEngine.Object)null)
             {
                 views[i] = (View)null;
             }
         }
     }
     views            = null;
     childPrefab      = (View)null;
     swipeEventRegion = null;
     container        = null;
     keyController    = null;
     initCoroutine    = null;
 }
Пример #6
0
 private void Awake()
 {
     _isMove     = false;
     _dicButtons = new Dictionary <ButtonIndex, UIButton>();
     foreach (int value in Enum.GetValues(typeof(ButtonIndex)))
     {
         _dicButtons.Add((ButtonIndex)value, ((Component)base.transform.FindChild("Button_" + ((ButtonIndex)value).ToString())).GetComponent <UIButton>());
         _dicButtons[(ButtonIndex)value].onClick = Util.CreateEventDelegateList(this, "press_Button", (ButtonIndex)value);
     }
     _dicShipParts = new Dictionary <ShipPartsIndex, UITexture>();
     foreach (int value2 in Enum.GetValues(typeof(ShipPartsIndex)))
     {
         _dicShipParts.Add((ShipPartsIndex)value2, ((Component)base.transform.FindChild("Ship_" + ((ShipPartsIndex)value2).ToString())).GetComponent <UITexture>());
     }
     _iStarterType  = CtrlStarterSelect.StarterType.Ex;
     _nSelectedId   = 0;
     _clsSwipeEvent = GameObject.Find("EventArea").GetComponent <UIDisplaySwipeEventRegion>();
     _clsSwipeEvent.SetOnSwipeActionJudgeCallBack(OnSwipe);
     _clsSwipeEvent.SetEventCatchCamera(StartupTaskManager.GetPSVitaMovie().GetComponent <Camera>());
     _isDecide = false;
     panel.widgetsAreStatic = true;
 }
 private void OnDestroy()
 {
     mUIBattleFormationKindSelectorAction = null;
     mUIDisplaySwipeEventRegion           = null;
     mKeyController = null;
 }
 public void OnReleaseKeyController()
 {
     mKeyController             = null;
     mUIDisplaySwipeEventRegion = null;
 }
 public void SetKeyController(KeyControl keyController, UIDisplaySwipeEventRegion displaySwipeEventRegion)
 {
     mKeyController             = keyController;
     mUIDisplaySwipeEventRegion = displaySwipeEventRegion;
 }
Пример #10
0
        private void StartUp()
        {
            _StartUp = true;
            if (_DEBUG_MODE_NOW_)
            {
                _dbg_class    = 1;
                _DBG_Button_L = ((Component)base.transform.FindChild("Debug_ship/DBG_Button_L")).GetComponent <UIButton>();
                _DBG_Button_R = ((Component)base.transform.FindChild("Debug_ship/DBG_Button_R")).GetComponent <UIButton>();
                UIButtonMessage component = _DBG_Button_L.GetComponent <UIButtonMessage>();
                component.target       = base.gameObject;
                component.functionName = "Pressed_DBG_Button_L";
                component.trigger      = UIButtonMessage.Trigger.OnClick;
                UIButtonMessage component2 = _DBG_Button_R.GetComponent <UIButtonMessage>();
                component2.target       = base.gameObject;
                component2.functionName = "Pressed_DBG_Button_R";
                component2.trigger      = UIButtonMessage.Trigger.OnClick;
            }
            UIDisplaySwipeEventRegion component3 = GameObject.Find("TouchEventArea").GetComponent <UIDisplaySwipeEventRegion>();
            Camera component4;

            if (Application.loadedLevelName == "Record")
            {
                _isRecordScene = true;
                component4     = GameObject.Find("Camera").GetComponent <Camera>();
                SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate
                {
                    ShipUtils.PlayShipVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip(), 8);
                });
            }
            else
            {
                _isRecordScene = false;
                component4     = GameObject.Find("OverViewCamera").GetComponent <Camera>();
            }
            component3.SetOnSwipeActionJudgeCallBack(SwipeJudgeDelegate);
            component3.SetEventCatchCamera(component4);
            _ANIM_filebase = "boards_mvud";
            _AM            = GameObject.Find("RecordScene").GetComponent <Animation>();
            if (_isRecordScene)
            {
                _AM_l = GameObject.Find("medalist").GetComponent <Animation>();
            }
            _AM_b       = GameObject.Find("btn").GetComponent <Animation>();
            _SM         = SingletonMonoBehaviour <SoundManager> .Instance;
            _Button_L   = ((Component)base.transform.FindChild("btn/Button_L")).GetComponent <UIButton>();
            _Button_R   = ((Component)base.transform.FindChild("btn/Button_R")).GetComponent <UIButton>();
            _Button_L_B = ((Component)base.transform.FindChild("btn/Button_L/Background")).GetComponent <UITexture>();
            _Button_R_B = ((Component)base.transform.FindChild("btn/Button_R/Background")).GetComponent <UITexture>();
            _Button_L_B.transform.localScale = Vector3.zero;
            _Button_R_B.transform.localScale = Vector3.one;
            UIButtonMessage component5 = _Button_L.GetComponent <UIButtonMessage>();

            component5.target       = base.gameObject;
            component5.functionName = "Pressed_Button_L";
            component5.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component6 = _Button_R.GetComponent <UIButtonMessage>();

            component6.target       = base.gameObject;
            component6.functionName = "Pressed_Button_R";
            component6.trigger      = UIButtonMessage.Trigger.OnClick;
            _board1 = GameObject.Find("board1");
            ItemSelectController = new KeyControl(0, 2);
            ItemSelectController.setChangeValue(-1f, 0f, 1f, 0f);
            _draw_labels();
            _now_page = 1;
            ShipModel shipModel = (SingletonMonoBehaviour <AppInformation> .Instance.FlagShipModel == null) ? new ShipModel(1) : SingletonMonoBehaviour <AppInformation> .Instance.FlagShipModel;

            _flag_ship = shipModel.GetGraphicsMstId();
            DamageState damageStatus = shipModel.DamageStatus;

            if (damageStatus == DamageState.Normal || damageStatus == DamageState.Shouha)
            {
                _damaged = false;
            }
            else
            {
                _damaged = true;
            }
        }