private void EFC_FadeIn(bool isFadeIn, EfcCont ec, Vector3 vORG, EfcParam param) { if (null != ec) { this.actStartEfc(); if (isFadeIn) { Vector3 pos = vORG + param.vOffset; ec.SetPos(pos); Vector2 vP = new Vector2(vORG.x, vORG.y); ec.MoveTo(vP, param.time, new Action <int>(this.actEndEfc), param.type, param.delay); } else { Vector3 vector = vORG + param.vOffsetEnd; Vector2 vP2 = new Vector2(vector.x, vector.y); ec.MoveTo(vP2, param.time, new Action <int>(this.actEndEfc), param.typeEnd, param.delay); } } }
private void InitEFC() { if (null != this.goEFC_HEADER) { this.ecEFC_HEADER = this.goEFC_HEADER.GetComponent <EfcCont>(); if (null == this.ecEFC_HEADER) { this.ecEFC_HEADER = this.goEFC_HEADER.AddComponent <EfcCont>(); } this.vORG_HEADER = this.goEFC_HEADER.transform.localPosition; } if (null != this.goEFC_FOOTER) { this.ecEFC_FOOTER = this.goEFC_FOOTER.GetComponent <EfcCont>(); if (null == this.ecEFC_FOOTER) { this.ecEFC_FOOTER = this.goEFC_FOOTER.AddComponent <EfcCont>(); } this.vORG_FOOTER = this.goEFC_FOOTER.transform.localPosition; } if (null != this.goEFC_RIGHT) { this.ecEFC_RIGHT = this.goEFC_RIGHT.GetComponent <EfcCont>(); if (null == this.ecEFC_RIGHT) { this.ecEFC_RIGHT = this.goEFC_RIGHT.AddComponent <EfcCont>(); } this.vORG_RIGHT = this.goEFC_RIGHT.transform.localPosition; } if (null != this.goEFC_LEFT) { this.ecEFC_LEFT = this.goEFC_LEFT.GetComponent <EfcCont>(); if (null == this.ecEFC_LEFT) { this.ecEFC_LEFT = this.goEFC_LEFT.AddComponent <EfcCont>(); } this.vORG_LEFT = this.goEFC_LEFT.transform.localPosition; } if (null != this.goEFC_BG) { IEnumerator enumerator = this.goEFC_BG.transform.GetEnumerator(); try { while (enumerator.MoveNext()) { object obj = enumerator.Current; Transform transform = (Transform)obj; this.ecEFC_BG = transform.gameObject.GetComponent <EfcCont>(); if (null == this.ecEFC_BG) { this.ecEFC_BG = transform.gameObject.AddComponent <EfcCont>(); } } } finally { IDisposable disposable; if ((disposable = (enumerator as IDisposable)) != null) { disposable.Dispose(); } } } if (null != this.goEFC_CTR) { IEnumerator enumerator2 = this.goEFC_CTR.transform.GetEnumerator(); try { while (enumerator2.MoveNext()) { object obj2 = enumerator2.Current; Transform transform2 = (Transform)obj2; this.ecEFC_CTR = transform2.gameObject.GetComponent <EfcCont>(); if (null == this.ecEFC_CTR) { this.ecEFC_CTR = transform2.gameObject.AddComponent <EfcCont>(); } } } finally { IDisposable disposable2; if ((disposable2 = (enumerator2 as IDisposable)) != null) { disposable2.Dispose(); } } } if (null != this.goEFC_PARAM_HEADER) { this.epEFC_PARAM_HEADER = this.goEFC_PARAM_HEADER.GetComponent <EfcParam>(); } if (null != this.goEFC_PARAM_FOOTER) { this.epEFC_PARAM_FOOTER = this.goEFC_PARAM_FOOTER.GetComponent <EfcParam>(); } if (null != this.goEFC_PARAM_RIGHT) { this.epEFC_PARAM_RIGHT = this.goEFC_PARAM_RIGHT.GetComponent <EfcParam>(); } if (null != this.goEFC_PARAM_LEFT) { this.epEFC_PARAM_LEFT = this.goEFC_PARAM_LEFT.GetComponent <EfcParam>(); } }