zombie_mp/Assets/Scripts/Menu/CharacterCustomizeMenu.cs

25 lines
499 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterCustomizeMenu : MonoBehaviour
{
public CharacterCustomizer character;
public EnumSelect bodySelector;
void Start()
{
bodySelector.OnValueChanged.AddListener(OnBodyChanged);
}
// Update is called once per frame
void Update()
{
}
void OnBodyChanged(){
character.ChangeCharacter(bodySelector.value);
}
}