public override void ApplyEffect(ref Core.CharacterData data, int charIndex) { //Take a look at the TextUtilities class. //See also how default classes are implemented. //Example: //Moving a character towards a direction //Using the help of the TextUtilities class //data.vertices = data.vertices.MoveChar(direction); /* * //Alternative way, moving each vertex manually (same result as the above) * for (byte i = 0; i < data.vertices.Length; i++) * { * data.vertices[i] += dir; * } */ /* * // You can also Modify colors * for (byte i = 0; i < data.colors.Length; i++) * { * data.colors[i] = //change colors * } */ }
public override void ApplyEffect(ref Core.CharacterData data, int charIndex) { /* * pct = charPCTs[charIndex] / showDuration; * * for (int i = 0; i < data.vertices.Length; i++) * { * //copies the current char position (e.g. if the character is waving etc) * vert = data.vertices[i]; * * //moves it vertically * vert += Vector3.up * verticalOffset * effectIntensity; * * //Sets the vertex, * //From "big" to "normal", with time * data.vertices[i] = Vector3.Lerp( * vert, * data.vertices[i], * Tween.EaseInOut(pct)); * } */ }