public void Play(BaseProdLine.AnimationName iName, bool isFriend, Action callback) { base.get_transform().localScaleOne(); if (iName != BaseProdLine.AnimationName.ProdSuccessiveLine) { this._prodShellingLine.Play(isFriend); } this._prodShellingSlot.Play(iName, isFriend, callback); }
protected virtual void PlayShellingSlot(SlotitemModel_Battle[] models, BaseProdLine.AnimationName iName, bool isFriend, float delay) { if (models != null) { Observable.Timer(TimeSpan.FromSeconds(delay)).Subscribe(delegate { ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine; prodShellingSlotLine.SetSlotData(new List <SlotitemModel_Battle>(models), isFriend); prodShellingSlotLine.Play(iName, isFriend, null); }); } }
protected virtual void PlayShellingSlot(SlotitemModel_Battle model, BaseProdLine.AnimationName iName, bool isFriend, float delay) { if (model == null) { return; } Observable.Timer(TimeSpan.FromSeconds((double)delay)).Subscribe(delegate(long _) { ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine; prodShellingSlotLine.SetSlotData(model, isFriend); prodShellingSlotLine.Play(iName, isFriend, null); }); }
private void SetFlashText(BaseProdLine.AnimationName iName) { if (iName == BaseProdLine.AnimationName.ProdNormalAttackLine) { this._uiFlashText.SetActive(true); this._uiFlashText.pivot = UIWidget.Pivot.Center; float num = this._listSlots.get_Item(0).slotName.localSize.x / 2f; this._uiFlashText.get_transform().set_localPosition(new Vector3(num * (float)((!this._isFriend) ? 1 : -1), 0f, 0f)); this._uiFlashText.text = this._listSlots.get_Item(0).slotName.text; } else { this._uiFlashText.SetActive(false); } }
private void SetSlotIconPos(BaseProdLine.AnimationName iName) { Vector3 localPosition = Vector3.get_zero(); if (iName == BaseProdLine.AnimationName.ProdNormalAttackLine) { localPosition = new Vector3(138f * (float)((!this._isFriend) ? 1 : -1), 194f, 0f); } else if (iName == BaseProdLine.AnimationName.ProdAircraftAttackLine) { localPosition = Vector3.get_zero(); } else { localPosition = Vector3.get_up() * 30f; } this._listSlots.get_Item(0).slotIcon.get_transform().set_localPosition(localPosition); }
public void Play(BaseProdLine.AnimationName iName, bool isNotFlipHorizontal, Action callback) { this._isFriend = isNotFlipHorizontal; this.panel.widgetsAreStatic = false; this._listOverlay.ForEach(delegate(UITexture x) { Color color = (!this._isFriend) ? new Color(1f, 0f, 0f, x.alpha) : new Color(0f, 0.31875f, 1f, x.alpha); x.get_transform().localScaleOne(); x.color = color; }); this.isNotFlipHorizontal = isNotFlipHorizontal; this.slotIconActive = iName; this.depth = iName; this.ResetRotation(); this.SetFlashText(iName); this._clsGlowIcon.isActive = (iName == BaseProdLine.AnimationName.ProdAircraftAttackLine); this._clsNoiseMove.set_enabled(iName == BaseProdLine.AnimationName.ProdAircraftAttackLine); this.SetSlotIconPos(iName); this.slotNamePivot = iName; base.get_transform().localScaleOne(); base.Play(iName, callback); }
public virtual void Play(BaseProdLine.AnimationName iName, Action callback) { this._isFinished = false; this._actCallback = callback; base.GetComponent <Animation>().Play(iName.ToString()); }
public void PlayTranscendenceLine(BaseProdLine.AnimationName iName, bool isFriend, Action callback) { base.get_transform().localScaleOne(); this._prodShellingSlot.Play(iName, isFriend, callback); }