private void SetCircleColor(FleetType iType) { Color color = (iType != FleetType.Friend) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f)) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f)); this._mrBufferCircle.get_sharedMaterial().set_color(color); this._cBaseColor = color; }
private void SetCircleColor(FleetType iType) { Color color = (iType != 0) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f)) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f)); _mrBufferCircle.sharedMaterial.color = color; _cBaseColor = color; }
private void InitMode(DamageCutInType iType) { _iType = iType; Color color = (iType != 0) ? new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(8f), KCVColor.ColorRate(20f), 1f) : new Color(KCVColor.ColorRate(62f), KCVColor.ColorRate(187f), KCVColor.ColorRate(229f), 1f); _uiBackground.color = color; _uiMask.SetActive(iType == DamageCutInType.Moderate); ((Component)_psModerateSmoke).SetActive(iType == DamageCutInType.Moderate); ((Component)_psHeavyBack).SetActive(iType == DamageCutInType.Heavy); }
public void PlayRipple() { base.GetComponent <Animation>().Play(); base.get_transform().LTValue(1f, 0f, base.GetComponent <Animation>().get_Item("ProdBufferFleetCircleRipple").get_length()).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x) { this._listRippleRenderer.ForEach(delegate(MeshRenderer renderer) { renderer.get_material().set_color(new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(60f), x)); }); }); }
public void PlayLookAtLine2Assult() { this._mrLine.get_transform().LTCancel(); this._mrLine.get_transform().LookTo(this._traTarget.get_position(), this._strParam.lookAtLineAnimTime, iTween.EaseType.easeInQuint, delegate { this._isLootAtLine = true; }); this._mrLine.get_transform().LTValue(this._cDefaultLineColor, new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f), KCVColor.ColorRate(175f)), this._strParam.lookAtLineAnimTime).setEase(LeanTweenType.easeInQuint).setOnUpdate(delegate(Color color) { this._mrLine.get_sharedMaterial().set_color(color); }); }
public void PlayLookAtLine2Assult() { ((Component)_mrLine).transform.LTCancel(); ((Component)_mrLine).transform.LookTo(_traTarget.position, _strParam.lookAtLineAnimTime, iTween.EaseType.easeInQuint, delegate { _isLootAtLine = true; }); ((Component)_mrLine).transform.LTValue(_cDefaultLineColor, new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f), KCVColor.ColorRate(175f)), _strParam.lookAtLineAnimTime).setEase(LeanTweenType.easeInQuint).setOnUpdate(delegate(Color color) { _mrLine.sharedMaterial.color = color; }); }
public void PlayRipple() { GetComponent <Animation>().Play(); base.transform.LTValue(1f, 0f, GetComponent <Animation>()["ProdBufferFleetCircleRipple"].length).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x) { UIBufferFleetCircle uIBufferFleetCircle = this; _listRippleRenderer.ForEach(delegate(MeshRenderer renderer) { renderer.material.color = new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(60f), x); }); }); }
private void SetCircleColor(FleetType iType) { Color baseColor = (iType != FleetType.Friend) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f), 1f) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f), 1f); this._cDefaultBaseColor = baseColor; this._listMeshRenderer.ForEach(delegate(MeshRenderer x) { x.get_sharedMaterial().set_color(baseColor); }); this._mrGear.get_sharedMaterial().set_color(baseColor); Color color = (iType != FleetType.Friend) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f), KCVColor.ColorRate(103f)) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f), KCVColor.ColorRate(103f)); this._mrLine.get_sharedMaterial().set_color(color); this._cDefaultLineColor = color; }
private void SetCircleColor(FleetType iType) { Color baseColor = (iType != 0) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f), 1f) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f), 1f); _cDefaultBaseColor = baseColor; _listMeshRenderer.ForEach(delegate(MeshRenderer x) { x.sharedMaterial.color = baseColor; }); _mrGear.sharedMaterial.color = baseColor; Color color = (iType != 0) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f), KCVColor.ColorRate(103f)) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f), KCVColor.ColorRate(103f)); _mrLine.sharedMaterial.color = color; _cDefaultLineColor = color; }
private void ReflectionMaterial() { _mrBufferCircle.material = new Material(_material); _mrBufferCircle.sharedMaterial.mainTexture = _texBufferCircle; if (Application.isPlaying) { Mem.Del(ref _texBufferCircle); } int cnt = 0; _listRippleRenderer.ForEach(delegate(MeshRenderer x) { x.material = new Material(_material); x.sharedMaterial.mainTexture = _listRippleTexture[cnt]; _listRippleRenderer[cnt].sharedMaterial.color = new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f)); cnt++; }); if (Application.isPlaying) { Mem.DelListSafe(ref _listRippleTexture); } }
private void ReflectionMaterial() { this._mrBufferCircle.set_material(new Material(this._material)); this._mrBufferCircle.get_sharedMaterial().set_mainTexture(this._texBufferCircle); if (Application.get_isPlaying()) { Mem.Del <Texture2D>(ref this._texBufferCircle); } int cnt = 0; this._listRippleRenderer.ForEach(delegate(MeshRenderer x) { x.set_material(new Material(this._material)); x.get_sharedMaterial().set_mainTexture(this._listRippleTexture.get_Item(cnt)); this._listRippleRenderer.get_Item(cnt).get_sharedMaterial().set_color(new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f))); cnt++; }); if (Application.get_isPlaying()) { Mem.DelListSafe <Texture2D>(ref this._listRippleTexture); } }
private void InitMode(ProdDamageCutIn.DamageCutInType iType) { this._iType = iType; Color color = (iType != ProdDamageCutIn.DamageCutInType.Moderate) ? new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(8f), KCVColor.ColorRate(20f), 1f) : new Color(KCVColor.ColorRate(62f), KCVColor.ColorRate(187f), KCVColor.ColorRate(229f), 1f); this._uiBackground.color = color; this._uiMask.SetActive(iType == ProdDamageCutIn.DamageCutInType.Moderate); this._psModerateSmoke.SetActive(iType == ProdDamageCutIn.DamageCutInType.Moderate); this._psHeavyBack.SetActive(iType == ProdDamageCutIn.DamageCutInType.Heavy); }