using UnityEngine;
|
|
|
//武将外观配置
|
public class HeroSkinModel : MonoBehaviour
|
{
|
[SerializeField] UIHeroController heroModel;
|
public int heroSkinID = 0;
|
public float scale = 1;
|
public string actionName = "idle";
|
[Header("初始是否可见")]
|
public bool enable = true;
|
|
|
public void Start()
|
{
|
heroModel.Create(heroSkinID, scale);
|
heroModel.PlayAnimation(actionName, true);
|
heroModel.SetEnabled(enable);
|
}
|
}
|