using System; using UnityEngine; using UnityEngine.UI; namespace MoleMole { public class MonoAvatarButton : MonoBehaviour { private const float HP_START_RATIO = 0.56f; private const float SP_START_RATIO = 0.314f; public uint avatarRuntimeID; private BaseMonoAvatar _avatar; private AvatarActor _avatarActor; private Image _hpBarImg; private Image _spBarImg; private Image _frameLightImg; private Animation _frameLightAnimation; private Button _button; private Image _iconImage; private Image _CDMaskImg; private MonoEffect _buttonQTEEffect; private MonoEffect _buttonSwitchInEffect; public int index; public bool canChange = true; private bool onlyForShow; public void Init(uint runtimeID) { _button = GetComponent