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