void Start() { modelManager = GetComponent <LAppModelProxy>(); live2DModel = modelManager.GetModel().getLive2DModel(); motionMgr = new MotionQueueManager(); motion = Live2DMotion.loadMotion(motionFile.bytes); int i = 0; foreach (TextAsset t in motionFiles) { motions[i] = Live2DMotion.loadMotion(motionFiles[i].bytes); i++; } InvokeRepeating("RandomMotion", 10, 10); }
void Start() { modelManager = GetComponent <LAppModelProxy>(); live2DModel = modelManager.GetModel().getLive2DModel(); motionMgr = new MotionQueueManager(); motion = Live2DMotion.loadMotion(motionFile.bytes); target = GameObject.FindGameObjectWithTag("Player"); AtkMotion = Live2DMotion.loadMotion(AttackMotion.bytes); attack = StartCoroutine(Attack()); int Stage = PlayerPrefs.GetInt("stage", 1); Damage = 20 + (5 * Stage); HP = 100 + (10 * Stage); }
public void ClickChatBtn() { PlayButtonSound(); audioSource.clip = clips[1]; audioSource.Play(); actionBtns.SetActive(false); chatUI.SetActive(true); if (favor >= 100) { modelProxy.GetModel().StartMotion("tap_body", 1, 2); } else { modelProxy.GetModel().StartMotion("tap_body", 0, 2); } }
/// <summary> /// 聊天 /// </summary> public void ClickChat() { actionBtns.SetActive(false); ChatUI.SetActive(true); audioSource.clip = audioClips[1]; audioSource.Play(); if (favor >= 100) { lAppModelProxy.GetModel().StartMotion("tap_body", 1, 2); } else { //参数 当前组的名字 组里面第几个 优先级 lAppModelProxy.GetModel().StartMotion("tap_body", 0, 2); } }