2026-04-22 모듈러 에셋 포함
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace Bozo.AnimeCharacters
|
||||
{
|
||||
public class OutfitHeightChange : MonoBehaviour
|
||||
{
|
||||
[SerializeField] float HeightOffset;
|
||||
private void OnEnable()
|
||||
{
|
||||
var System = GetComponentInParent<OutfitSystem>();
|
||||
if (System == null) return;
|
||||
|
||||
System.SetHeight(HeightOffset);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
var System = GetComponentInParent<OutfitSystem>();
|
||||
if (System == null) return;
|
||||
|
||||
System.SetHeight(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user