Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    private IEnumerator ShowBgmTip()
    {
        yield return(new WaitForSeconds(1f));

        UIBgmTip.Show(Deploy.bgmId);
    }