hch
3 天以前 18fe79ffe26f3591c322701001a73d4270e9d931
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 HeroModel : 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);
    }
}