Files

43 lines
1.2 KiB
C#
Raw Permalink Normal View History

2026-02-21 16:58:22 -08:00
using UnityEngine;
namespace Febucci.UI.Examples
{
[Core.EffectInfo(tag: "")] //doesn't add it to the game
public class AppearanceTemplate : Core.AppearanceBase
{
//float verticalOffset;
Vector3 vert;
float pct;
public override void SetDefaultValues(Core.AppearanceDefaultValues data)
{
//verticalOffset = data.customs.templateOffset;
}
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));
}
*/
}
}
}