private void FadeIn(float time) { float num1 = time / this.FadeTime; Color color1 = Color.Lerp(Color.get_white(), Color.get_grey(), num1); using (List <GameObject> .Enumerator enumerator = this.fadeInList.GetEnumerator()) { while (enumerator.MoveNext()) { GameObject current = enumerator.Current; EventStandChara2 component = (EventStandChara2)current.GetComponent <EventStandChara2>(); string charaId = ((EventStandCharaController2)current.GetComponentInParent <EventStandCharaController2>()).CharaID; Color white = Color.get_white(); if (Event2dAction_OperateStandChara.CharaColorDic.ContainsKey(charaId)) { white = Event2dAction_OperateStandChara.CharaColorDic[charaId]; } Color color2 = Color.op_Multiply(white, color1); Color color3 = ((Graphic)component.BodyObject.GetComponent <RawImage>()).get_color(); // ISSUE: explicit reference operation // ISSUE: explicit reference operation if ((double)((Color)@color3).get_maxColorComponent() <= (double)((Color)@color2).get_maxColorComponent()) { ((Graphic)component.FaceObject.GetComponent <RawImage>()).set_color(color2); ((Graphic)component.BodyObject.GetComponent <RawImage>()).set_color(color2); } } } float num2 = Mathf.Lerp(1f, 0.0f, num1); using (List <CanvasGroup> .Enumerator enumerator = this.fadeInParticleList.GetEnumerator()) { while (enumerator.MoveNext()) { CanvasGroup current = enumerator.Current; if ((double)current.get_alpha() <= (double)num2) { current.set_alpha(num2); } } } }
public override void PreStart() { if (this.NewMaterial) { Shader.DisableKeyword("EVENT_MONOCHROME_ON"); Shader.DisableKeyword("EVENT_SEPIA_ON"); } if (!UnityEngine.Object.op_Equality((UnityEngine.Object) this.mStandObject, (UnityEngine.Object)null)) { return; } string id = this.DummyID; if (!string.IsNullOrEmpty(this.CharaID)) { id = this.CharaID; } if (UnityEngine.Object.op_Inequality((UnityEngine.Object)EventStandCharaController2.FindInstances(id), (UnityEngine.Object)null)) { this.mEVCharaController = EventStandCharaController2.FindInstances(id); this.mStandObject = ((Component)this.mEVCharaController).get_gameObject(); } if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.mStandObject, (UnityEngine.Object)null) && UnityEngine.Object.op_Inequality((UnityEngine.Object) this.StandTemplate, (UnityEngine.Object)null)) { this.mStandObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.StandTemplate); this.mEVCharaController = (EventStandCharaController2)this.mStandObject.GetComponent <EventStandCharaController2>(); this.mEVCharaController.CharaID = this.CharaID; if (this.NewMaterial) { for (int index = 0; index < this.mEVCharaController.StandCharaList.Length; ++index) { try { EventStandChara2 component1 = (EventStandChara2)this.mEVCharaController.StandCharaList[index].GetComponent <EventStandChara2>(); RectTransform component2 = (RectTransform)component1.BodyObject.GetComponent <RectTransform>(); RectTransform component3 = (RectTransform)component1.FaceObject.GetComponent <RectTransform>(); Vector2 vector2_1; // ISSUE: explicit reference operation ((Vector2)@vector2_1).\u002Ector((float)(component2.get_sizeDelta().x *((Transform)component2).get_localScale().x), (float)(component2.get_sizeDelta().y *((Transform)component2).get_localScale().y)); Vector2 vector2_2; // ISSUE: explicit reference operation ((Vector2)@vector2_2).\u002Ector((float)(component3.get_sizeDelta().x *((Transform)component3).get_localScale().x), (float)(component3.get_sizeDelta().y *((Transform)component3).get_localScale().y)); Vector2 vector2_3; Vector2 vector2_4; if (Mathf.Approximately((float)vector2_2.x, 0.0f) || Mathf.Approximately((float)vector2_2.y, 0.0f)) { // ISSUE: explicit reference operation ((Vector2)@vector2_3).\u002Ector(0.0f, 0.0f); // ISSUE: explicit reference operation ((Vector2)@vector2_4).\u002Ector(2f, 2f); } else { // ISSUE: explicit reference operation ((Vector2)@vector2_3).\u002Ector((float)(vector2_1.x / vector2_2.x), (float)(vector2_1.y / vector2_2.y)); Vector2 vector2_5; // ISSUE: explicit reference operation ((Vector2)@vector2_5).\u002Ector((float)(((Transform)component3).get_localPosition().x - component3.get_pivot().x *vector2_2.x), (float)(((Transform)component3).get_localPosition().y - component3.get_pivot().y *vector2_2.y)); Vector2 vector2_6; // ISSUE: explicit reference operation ((Vector2)@vector2_6).\u002Ector((float)(((Transform)component2).get_localPosition().x - component2.get_pivot().x *vector2_1.x), (float)(((Transform)component2).get_localPosition().y - component2.get_pivot().y *vector2_1.y)); Vector2 vector2_7 = Vector2.op_Subtraction(vector2_5, vector2_6); // ISSUE: explicit reference operation ((Vector2)@vector2_4).\u002Ector((float)(-1.0 * vector2_7.x / vector2_2.x), (float)(-1.0 * vector2_7.y / vector2_2.y)); } Material material = new Material(Shader.Find("UI/Custom/EventStandChara")); Texture mainTexture = ((RawImage)component1.FaceObject.GetComponent <RawImage>()).get_mainTexture(); this.SetMaterialProperty(material, "_FaceTex", mainTexture); this.SetMaterialProperty(material, "_ScaleX", (float)vector2_3.x); this.SetMaterialProperty(material, "_ScaleY", (float)vector2_3.y); this.SetMaterialProperty(material, "_OffsetX", (float)vector2_4.x); this.SetMaterialProperty(material, "_OffsetY", (float)vector2_4.y); ((Graphic)component1.BodyObject.GetComponent <RawImage>()).set_material(material); GameUtility.SetGameObjectActive(component1.FaceObject, false); } catch (Exception ex) { } } } } if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.mStandObject, (UnityEngine.Object)null)) { return; } this.mStandObject.get_transform().SetParent(((Component)this.ActiveCanvas).get_transform(), false); this.mStandObject.get_transform().SetAsLastSibling(); this.mStandObject.get_gameObject().SetActive(false); RectTransform component = (RectTransform)this.mStandObject.GetComponent <RectTransform>(); RectTransform rectTransform = component; Vector2 startPosition = Event2dAction_StandChara3.START_POSITION; component.set_anchorMax(startPosition); Vector2 vector2 = startPosition; rectTransform.set_anchorMin(vector2); }