22 lines
483 B
C#
22 lines
483 B
C#
using UnityEngine;
|
|
|
|
namespace Bozo.AnimeCharacters
|
|
{
|
|
public class ToonFaceRelay : MonoBehaviour
|
|
{
|
|
private ToonFacialAnimator animator;
|
|
|
|
|
|
private void Start()
|
|
{
|
|
var sys = GetComponentInParent<OutfitSystem>();
|
|
animator = sys.GetComponentInChildren<ToonFacialAnimator>();
|
|
}
|
|
public void SetFace(int preset)
|
|
{
|
|
if (animator == null) return;
|
|
animator.SetFace(preset);
|
|
}
|
|
}
|
|
}
|