public void Initialize() { this.hypJpn = (HyphenationJpn)((Component)this.messageWindow).GetComponent <HyphenationJpn>(); if (false) { Object.Destroy((Object)this.hypJpn); this.hypJpn = (HyphenationJpn)null; } else if (Object.op_Equality((Object)this.hypJpn, (Object)null)) { this.hypJpn = (HyphenationJpn)((Component)this.messageWindow).get_gameObject().AddComponent <HyphenationJpn>(); } if (Object.op_Inequality((Object)this.hypJpn, (Object)null)) { this.hypJpn.SetText(this.messageWindow); } this.TA = (TypefaceAnimatorEx)((Component)this.messageWindow).GetComponent <TypefaceAnimatorEx>(); this.initialized = true; }
private void Modify(List <UIVertex> verts) { this.characterNumber = verts.Count / 4; for (int index = 0; index < verts.Count; ++index) { if (index % 4 == 0) { int currentCharacterNumber = index / 4; UIVertex vert1 = verts[index]; UIVertex vert2 = verts[index + 1]; UIVertex vert3 = verts[index + 2]; UIVertex vert4 = verts[index + 3]; if (this.usePosition) { Vector3 vector3 = Vector3.op_Addition(Vector3.op_Multiply(Vector3.op_Subtraction(this.positionTo, this.positionFrom), this.positionAnimationCurve.Evaluate(TypefaceAnimatorEx.SeparationRate(this.progress, currentCharacterNumber, this.characterNumber, this.positionSeparation))), this.positionFrom); ref UIVertex local1 = ref vert1; local1.position = (__Null)Vector3.op_Addition((Vector3)local1.position, vector3); ref UIVertex local2 = ref vert2; local2.position = (__Null)Vector3.op_Addition((Vector3)local2.position, vector3); ref UIVertex local3 = ref vert3; local3.position = (__Null)Vector3.op_Addition((Vector3)local3.position, vector3); ref UIVertex local4 = ref vert4;