hch
昨天 7222adcc97941b57a61f0f8e8469f0f66b9ee1a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
    }
}