2026-05-06 15:07:56 +02:00

20 lines
443 B
C#

using UnityEngine;
using System.Collections;
using UMA;
namespace UMA.Examples
{
/// <summary>
/// Auxillary slot which adds a Locomotion component to a newly created character.
/// </summary>
public class LocomotionSlotScript : MonoBehaviour
{
public void OnDnaApplied(UMAData umaData)
{
var locomotion = umaData.GetComponent<Locomotion>();
if (locomotion == null)
umaData.gameObject.AddComponent<Locomotion>();
}
}
}