예제 #1
0
파일: Boss.cs 프로젝트: zhfelon1/th-haruhi
    private void TryDialog()
    {
        if (StageMgr.MainPlayer != null)
        {
            var deploy = DialogMgr.GetBossDialog(StageMgr.MainPlayer.Deploy.id, Deploy.id, true);
            if (deploy != null)
            {
                var list = DialogMgr.GetDrawList(deploy.dialogId);
                UIDrawingChat.Show(list,
                                   () =>
                {
                    MoveToTarget(BossUpCenter, 10f);
                },
                                   () =>
                {
                    StartFight();
                    if (deploy.bgmId > 0)
                    {
                        Sound.PlayMusic(deploy.bgmId);
                        UIBgmTip.Show(deploy.bgmId);
                    }
                });
                return;
            }
        }

        //如果没有对话,直接移动到指定位置,并开始战斗
        MoveToTarget(BossUpCenter, 10f);
        DOVirtual.DelayedCall(1.15F, StartFight, false);
    }
예제 #2
0
    private IEnumerator ShowBgmTip()
    {
        yield return(new WaitForSeconds(1f));

        UIBgmTip.Show(Deploy.bgmId);
    }