Beispiel #1
0
 protected override void Awake()
 {
     base.Awake();
     this._iList = ProdAntiAerialCutIn.AnimationList.None;
     if (this._uiShipObj == null)
     {
         this._uiShipObj = base.get_transform().FindChild("ShipObj").get_gameObject();
     }
     Util.FindParentToChild <UITexture>(ref this._uiShip, base.get_transform(), "ShipObj/Anchor/Object2D");
     Util.FindParentToChild <UITexture>(ref this._uiShipShadow, base.get_transform(), "ShipObj/Anchor/ObjectShadow");
     this._uiSlotLabel = new UILabel[3];
     this._uiSlotBg    = new UITexture[3];
     for (int i = 0; i < 3; i++)
     {
         Util.FindParentToChild <UILabel>(ref this._uiSlotLabel[i], base.get_transform(), "SlotLabel" + (i + 1));
         Util.FindParentToChild <UITexture>(ref this._uiSlotBg[i], base.get_transform(), "SlotBg" + (i + 1));
         this._uiSlotLabel[i].SetActive(false);
         this._uiSlotBg[i].SetActive(false);
     }
 }
Beispiel #2
0
        public void Play(Action callback, bool isFriend)
        {
            this.panel.widgetsAreStatic = false;
            BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera;

            cutInCamera.depth = 5f;
            BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera;

            cutInEffectCamera.isCulling = true;
            cutInEffectCamera.depth     = 6f;
            base.get_transform().set_localScale(Vector3.get_one());
            this._actCallback = callback;
            this._iList       = this.getAnimationList();
            if (this._iList == ProdAntiAerialCutIn.AnimationList.None)
            {
                this.onAnimationFinishedAfterDiscard();
                return;
            }
            this._setShipInfo(isFriend);
            this._setSlotLabel(isFriend);
            this.setGlowEffects();
            this.Play(callback);
        }