コード例 #1
0
        protected virtual void init()
        {
            Util.FindParentToChild(ref _uiBg, base.transform, "BG");
            Util.FindParentToChild(ref _uiShip, base.transform, "ShipLayoutOffset/Ship");
            Util.FindParentToChild(ref _clsShipName, base.transform, "MessageWindow/ShipName");
            Util.FindParentToChild(ref _clsSType, base.transform, "MessageWindow/ShipType");
            Util.FindParentToChild <Animation>(ref _getIconAnim, base.transform, "MessageWindow/Get");
            Util.FindParentToChild(ref _uiGear, base.transform, "MessageWindow/NextBtn");
            if ((UnityEngine.Object)_anim == null)
            {
                _anim = GetComponent <Animation>();
            }
            if ((UnityEngine.Object)_gearAnim == null)
            {
                _gearAnim = _uiGear.GetComponent <Animation>();
            }
            _clsShipMessage = new Generics.Message(base.transform, "MessageWindow/ShipMessage");
            _uiShip.alpha   = 0f;
            UIButtonMessage component = _uiGear.GetComponent <UIButtonMessage>();

            component.target       = base.gameObject;
            component.functionName = "prodReceiveShipEL";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component2 = _uiBg.GetComponent <UIButtonMessage>();

            component2.target       = base.gameObject;
            component2.functionName = "backgroundEL";
            component2.trigger      = UIButtonMessage.Trigger.OnClick;
            _isInput    = false;
            _isFinished = false;
            debugIndex  = 0;
            _uiGear.GetComponent <Collider2D>().enabled = false;
        }
コード例 #2
0
 public void Init()
 {
     Util.FindParentToChild <ParticleSystem>(ref _uiPar, base.transform, "Particle");
     Util.FindParentToChild <ParticleSystem>(ref _uiParticleComp, base.transform, "ParticleComp");
     Util.FindParentToChild <ParticleSystem>(ref _uiParticleStar1, base.transform, "ParticleStar1");
     Util.FindParentToChild(ref _uiRareBG, base.transform, "RareBG");
     Util.FindParentToChild(ref _uiItem, base.transform, "Item");
     Util.FindParentToChild(ref _uiShipGet, base.transform, "MessageWindow/Get");
     Util.FindParentToChild(ref _uiGear, base.transform, "MessageWindow/NextBtn");
     Util.FindParentToChild <Animation>(ref _getAnim, base.transform, "MessageWindow/Get");
     if ((UnityEngine.Object)_anim == null)
     {
         _anim = GetComponent <Animation>();
     }
     if ((UnityEngine.Object)_gearAnime == null)
     {
         _gearAnime = _uiGear.GetComponent <Animation>();
     }
     _clsShipMessage = new Generics.Message(base.transform, "MessageWindow/ShipMessage");
     ((Component)_uiParticleComp).SetActive(isActive: false);
     ((Component)_uiParticleStar1).SetActive(isActive: false);
     _uiItem.alpha = 0f;
     debugIndex    = 0;
     _rewardCount  = 0;
     ((Component)_uiParticleComp).SetActive(isActive: false);
     ((Component)_uiParticleStar1).SetActive(isActive: false);
     _uiItem.alpha = 0f;
     _setRewardItem();
     _uiRareBG.alpha = 0f;
     _uiPar.Stop();
 }
コード例 #3
0
        protected virtual void init()
        {
            Util.FindParentToChild <UITexture>(ref this._uiBg, base.get_transform(), "BG");
            Util.FindParentToChild <UITexture>(ref this._uiShip, base.get_transform(), "ShipLayoutOffset/Ship");
            Util.FindParentToChild <UILabel>(ref this._clsShipName, base.get_transform(), "MessageWindow/ShipName");
            Util.FindParentToChild <UILabel>(ref this._clsSType, base.get_transform(), "MessageWindow/ShipType");
            Util.FindParentToChild <Animation>(ref this._getIconAnim, base.get_transform(), "MessageWindow/Get");
            Util.FindParentToChild <UISprite>(ref this._uiGear, base.get_transform(), "MessageWindow/NextBtn");
            if (this._anim == null)
            {
                this._anim = base.GetComponent <Animation>();
            }
            if (this._gearAnim == null)
            {
                this._gearAnim = this._uiGear.GetComponent <Animation>();
            }
            this._clsShipMessage = new Generics.Message(base.get_transform(), "MessageWindow/ShipMessage");
            this._uiShip.alpha   = 0f;
            UIButtonMessage component = this._uiGear.GetComponent <UIButtonMessage>();

            component.target       = base.get_gameObject();
            component.functionName = "prodReceiveShipEL";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component2 = this._uiBg.GetComponent <UIButtonMessage>();

            component2.target       = base.get_gameObject();
            component2.functionName = "backgroundEL";
            component2.trigger      = UIButtonMessage.Trigger.OnClick;
            this._isInput           = false;
            this._isFinished        = false;
            this.debugIndex         = 0;
            this._uiGear.GetComponent <Collider2D>().set_enabled(false);
        }
コード例 #4
0
 private void Awake()
 {
     Util.FindParentToChild <ParticleSystem>(ref this._uiPar, base.get_transform(), "Particle");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParticleComp, base.get_transform(), "ParticleComp");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParticleMiss, base.get_transform(), "Miss/Reaf/MissPar");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParticleStar1, base.get_transform(), "ParticleStar1");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParticleStar2, base.get_transform(), "ParticleStar2");
     Util.FindParentToChild <UITexture>(ref this._uiRareBG, base.get_transform(), "RareBG");
     Util.FindParentToChild <UIButton>(ref this._uiBG, base.get_transform(), "BG");
     Util.FindParentToChild <UITexture>(ref this._uiItem, base.get_transform(), "Item");
     Util.FindParentToChild <UISprite>(ref this._uiShipGet, base.get_transform(), "MessageWindow/Get");
     Util.FindParentToChild <UISprite>(ref this._uiGear, base.get_transform(), "MessageWindow/NextBtn");
     Util.FindParentToChild <Animation>(ref this._getIconAnim, base.get_transform(), "MessageWindow/Get");
     this._anime          = base.GetComponent <Animation>();
     this._gearAnime      = this._uiGear.GetComponent <Animation>();
     this._missObj        = base.get_transform().FindChild("Miss").get_gameObject();
     this._clsShipMessage = new Generics.Message(base.get_transform(), "MessageWindow/ShipMessage");
     this._uiParticleComp.SetActive(false);
     this._uiParticleStar1.SetActive(false);
     this._uiParticleStar2.SetActive(false);
     this._uiItem.alpha = 0f;
     this._isExtinguish = false;
     this.debugIndex    = 0;
     this._rewardCount  = 0;
 }
コード例 #5
0
 public void Init()
 {
     Util.FindParentToChild <ParticleSystem>(ref this._uiPar, base.get_transform(), "Particle");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParticleComp, base.get_transform(), "ParticleComp");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParticleStar1, base.get_transform(), "ParticleStar1");
     Util.FindParentToChild <UITexture>(ref this._uiRareBG, base.get_transform(), "RareBG");
     Util.FindParentToChild <UITexture>(ref this._uiItem, base.get_transform(), "Item");
     Util.FindParentToChild <UISprite>(ref this._uiShipGet, base.get_transform(), "MessageWindow/Get");
     Util.FindParentToChild <UISprite>(ref this._uiGear, base.get_transform(), "MessageWindow/NextBtn");
     Util.FindParentToChild <Animation>(ref this._getAnim, base.get_transform(), "MessageWindow/Get");
     if (this._anim == null)
     {
         this._anim = base.GetComponent <Animation>();
     }
     if (this._gearAnime == null)
     {
         this._gearAnime = this._uiGear.GetComponent <Animation>();
     }
     this._clsShipMessage = new Generics.Message(base.get_transform(), "MessageWindow/ShipMessage");
     this._uiParticleComp.SetActive(false);
     this._uiParticleStar1.SetActive(false);
     this._uiItem.alpha = 0f;
     this.debugIndex    = 0;
     this._rewardCount  = 0;
     this._uiParticleComp.SetActive(false);
     this._uiParticleStar1.SetActive(false);
     this._uiItem.alpha = 0f;
     this._setRewardItem();
     this._uiRareBG.alpha = 0f;
     this._uiPar.Stop();
 }
コード例 #6
0
 private void _setObject()
 {
     _setShipTexture();
     _clsMessage1 = new Generics.Message(base.transform, "Message1");
     _clsMessage1.Init($"『{_clsDeck.Name}』艦隊<br>旗艦「{_clsShipModel.Name}」が<br>大破しました。", 0.05f);
     _clsMessage2 = new Generics.Message(base.transform, "Message2");
     _clsMessage2.Init("進撃は困難です……帰投します。", 0.05f);
 }
コード例 #7
0
 private void _setObject()
 {
     this._setShipTexture();
     this._clsMessage1 = new Generics.Message(base.get_transform(), "Message1");
     this._clsMessage1.Init(string.Format("『{0}』艦隊<br>旗艦「{1}」が<br>大破しました。", this._clsDeck.Name, this._clsShipModel.Name), 0.05f, null);
     this._clsMessage2 = new Generics.Message(base.get_transform(), "Message2");
     this._clsMessage2.Init("進撃は困難です……帰投します。", 0.05f, null);
 }
コード例 #8
0
 private void _debugObject()
 {
     if (Mst_DataManager.Instance.Mst_shipgraph.ContainsKey(debugIndex))
     {
         ShipModelMst shipModelMst = new ShipModelMst(debugIndex);
         _uiShip.mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(debugIndex, isDamaged: true);
         _uiShip.MakePixelPerfect();
         _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(debugIndex).GetShipDisplayCenter(damaged: true));
         _clsMessage1.UnInit();
         _clsMessage2.UnInit();
         _clsMessage1 = new Generics.Message(base.transform, "Message1");
         _clsMessage1.Init($"『{_clsDeck.Name}』艦隊<br>旗艦「{shipModelMst.Name}」が<br>大破しました。", 0.05f);
         _clsMessage2 = new Generics.Message(base.transform, "Message2");
         _clsMessage2.Init("進撃は困難です……帰投します。", 0.05f);
     }
 }
コード例 #9
0
 private void _debugObject()
 {
     if (Mst_DataManager.Instance.Mst_shipgraph.ContainsKey(this.debugIndex))
     {
         ShipModelMst shipModelMst = new ShipModelMst(this.debugIndex);
         this._uiShip.mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(this.debugIndex, true);
         this._uiShip.MakePixelPerfect();
         this._uiShip.get_transform().set_localPosition(Util.Poi2Vec(new ShipOffset(this.debugIndex).GetShipDisplayCenter(true)));
         this._clsMessage1.UnInit();
         this._clsMessage2.UnInit();
         this._clsMessage1 = new Generics.Message(base.get_transform(), "Message1");
         this._clsMessage1.Init(string.Format("『{0}』艦隊<br>旗艦「{1}」が<br>大破しました。", this._clsDeck.Name, shipModelMst.Name), 0.05f, null);
         this._clsMessage2 = new Generics.Message(base.get_transform(), "Message2");
         this._clsMessage2.Init("進撃は困難です……帰投します。", 0.05f, null);
     }
 }
コード例 #10
0
 private void Awake()
 {
     Util.FindParentToChild <UITexture>(ref this._uiRareBG, base.get_transform(), "RareBG");
     Util.FindParentToChild <UITexture>(ref this._uiItem, base.get_transform(), "Item");
     Util.FindParentToChild <UITexture>(ref this._uiMessageBG, base.get_transform(), "MessageWindow/MessageBG");
     Util.FindParentToChild <UISprite>(ref this._uiShipGet, base.get_transform(), "MessageWindow/Get");
     Util.FindParentToChild <UISprite>(ref this._uiGear, base.get_transform(), "MessageWindow/NextBtn");
     Util.FindParentToChild <UISprite>(ref this._uiInner, base.get_transform(), "MessageWindow/NextBtn/Gear");
     Util.FindParentToChild <ParticleSystem>(ref this._uiStarPar1, base.get_transform(), "ParticleStar1");
     Util.FindParentToChild <ParticleSystem>(ref this._uiStarPar2, base.get_transform(), "ParticleStar2");
     this._clsShipMessage = new Generics.Message(base.get_transform(), "MessageWindow/ShipMessage");
     this._anime          = base.GetComponent <Animation>();
     this._getAnime       = this._uiShipGet.GetComponent <Animation>();
     this._uiItem.alpha   = 0f;
     this._uiStarPar1.SetActive(false);
     this._uiStarPar2.SetActive(false);
 }
コード例 #11
0
 private void Awake()
 {
     Util.FindParentToChild(ref _uiRareBG, base.transform, "RareBG");
     Util.FindParentToChild(ref _uiItem, base.transform, "Item");
     Util.FindParentToChild(ref _uiMessageBG, base.transform, "MessageWindow/MessageBG");
     Util.FindParentToChild(ref _uiShipGet, base.transform, "MessageWindow/Get");
     Util.FindParentToChild(ref _uiGear, base.transform, "MessageWindow/NextBtn");
     Util.FindParentToChild(ref _uiInner, base.transform, "MessageWindow/NextBtn/Gear");
     Util.FindParentToChild <ParticleSystem>(ref _uiStarPar1, base.transform, "ParticleStar1");
     Util.FindParentToChild <ParticleSystem>(ref _uiStarPar2, base.transform, "ParticleStar2");
     _clsShipMessage = new Generics.Message(base.transform, "MessageWindow/ShipMessage");
     _anime          = GetComponent <Animation>();
     _getAnime       = _uiShipGet.GetComponent <Animation>();
     _uiItem.alpha   = 0f;
     ((Component)_uiStarPar1).SetActive(isActive: false);
     ((Component)_uiStarPar2).SetActive(isActive: false);
 }
コード例 #12
0
 private void Awake()
 {
     _anim = GetComponent <Animation>();
     Util.FindParentToChild(ref _uiRareBG, base.transform, "RareBG");
     Util.FindParentToChild(ref _uiItem1, base.transform, "Item1");
     Util.FindParentToChild(ref _uiItem2, base.transform, "Item2");
     Util.FindParentToChild(ref _uiMessageBG, base.transform, "MessageWindow/MessageBG");
     Util.FindParentToChild <Animation>(ref _getIconAnim, base.transform, "MessageWindow/Get");
     Util.FindParentToChild(ref _uiGearBtn, base.transform, "MessageWindow/NextBtn");
     Util.FindParentToChild(ref _uiGear, base.transform, "MessageWindow/NextBtn/Gear");
     _clsShipMessage  = new Generics.Message(base.transform, "MessageWindow/MessageBG/ShipMessage");
     _uiItem1.alpha   = 0f;
     _uiItem2.alpha   = 0f;
     _uiItem1.depth   = 4;
     _uiItem2.depth   = 3;
     _isUpdateMessage = false;
     _isFinished      = false;
 }
コード例 #13
0
 private void Awake()
 {
     this._anim = base.GetComponent <Animation>();
     Util.FindParentToChild <UITexture>(ref this._uiRareBG, base.get_transform(), "RareBG");
     Util.FindParentToChild <UITexture>(ref this._uiItem1, base.get_transform(), "Item1");
     Util.FindParentToChild <UITexture>(ref this._uiItem2, base.get_transform(), "Item2");
     Util.FindParentToChild <UITexture>(ref this._uiMessageBG, base.get_transform(), "MessageWindow/MessageBG");
     Util.FindParentToChild <Animation>(ref this._getIconAnim, base.get_transform(), "MessageWindow/Get");
     Util.FindParentToChild <UISprite>(ref this._uiGearBtn, base.get_transform(), "MessageWindow/NextBtn");
     Util.FindParentToChild <UISprite>(ref this._uiGear, base.get_transform(), "MessageWindow/NextBtn/Gear");
     this._clsShipMessage  = new Generics.Message(base.get_transform(), "MessageWindow/MessageBG/ShipMessage");
     this._uiItem1.alpha   = 0f;
     this._uiItem2.alpha   = 0f;
     this._uiItem1.depth   = 4;
     this._uiItem2.depth   = 3;
     this._isUpdateMessage = false;
     this._isFinished      = false;
 }
コード例 #14
0
 public void Init()
 {
     if ((UnityEngine.Object)_anim == null)
     {
         _anim = GetComponent <Animation>();
     }
     Util.FindParentToChild(ref _uiRareBG, base.transform, "RareBG");
     Util.FindParentToChild(ref _uiShip, base.transform, "ShipLayoutOffset/Ship");
     Util.FindParentToChild(ref _clsShipName, base.transform, "MessageWindow/ShipName");
     Util.FindParentToChild(ref _clsSType, base.transform, "MessageWindow/ShipType");
     Util.FindParentToChild(ref _uiMessageBG, base.transform, "MessageWindow/MessageBG");
     Util.FindParentToChild(ref _uiGearBtn, base.transform, "MessageWindow/NextBtn");
     Util.FindParentToChild <ParticleSystem>(ref _uiParStar1, base.transform, "ParticleStar1");
     Util.FindParentToChild <ParticleSystem>(ref _uiParStar2, base.transform, "ParticleStar2");
     Util.FindParentToChild <Animation>(ref _getIconAnim, base.transform, "MessageWindow/Get");
     if ((UnityEngine.Object)_gearAnim == null)
     {
         _gearAnim = _uiGearBtn.GetComponent <Animation>();
     }
     _clsShipMessage = new Generics.Message(base.transform, "MessageWindow/ShipMessage");
     _uiShip.alpha   = 0f;
     _isFinished     = false;
 }
コード例 #15
0
 public void Init()
 {
     if (this._anim == null)
     {
         this._anim = base.GetComponent <Animation>();
     }
     Util.FindParentToChild <UITexture>(ref this._uiRareBG, base.get_transform(), "RareBG");
     Util.FindParentToChild <UITexture>(ref this._uiShip, base.get_transform(), "ShipLayoutOffset/Ship");
     Util.FindParentToChild <UILabel>(ref this._clsShipName, base.get_transform(), "MessageWindow/ShipName");
     Util.FindParentToChild <UILabel>(ref this._clsSType, base.get_transform(), "MessageWindow/ShipType");
     Util.FindParentToChild <UITexture>(ref this._uiMessageBG, base.get_transform(), "MessageWindow/MessageBG");
     Util.FindParentToChild <UIButtonMessage>(ref this._uiGearBtn, base.get_transform(), "MessageWindow/NextBtn");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParStar1, base.get_transform(), "ParticleStar1");
     Util.FindParentToChild <ParticleSystem>(ref this._uiParStar2, base.get_transform(), "ParticleStar2");
     Util.FindParentToChild <Animation>(ref this._getIconAnim, base.get_transform(), "MessageWindow/Get");
     if (this._gearAnim == null)
     {
         this._gearAnim = this._uiGearBtn.GetComponent <Animation>();
     }
     this._clsShipMessage = new Generics.Message(base.get_transform(), "MessageWindow/ShipMessage");
     this._uiShip.alpha   = 0f;
     this._isFinished     = false;
 }