private void ItemIsBuyDialog(ItmeIsBuyDialogMsg msg) { if (msg.upgrade == Upgrade.Skill) { UI.IDialog.RequestDialogExit <UI.AloneGameSkillUpgradeDialog>(); if (msg.isBuy) { SoundManager.Instance.PlaySound((int)SoundType.EFFECT_BTN_DOWN, optionModel.MobileOption.effectVolume); if (msg.index == 0) { playerStatusModel.VocalSkill += 1; } else if (msg.index == 1) { playerStatusModel.DanceSkill += 1; } else if (msg.index == 2) { playerStatusModel.EntertainmentSkill += 1; } else if (msg.index == 3) { playerStatusModel.IntelligenceSkill += 1; } else if (msg.index == 4) { playerStatusModel.RelaxSkill += 1; } else if (msg.index == 5) { playerStatusModel.SelfManagementSkill += 1; } playerStatusModel.Potential -= msg.price; AloneGameSkillorBuffSelect(new AloneGameSkillorBuffSelectMsg(Upgrade.Skill)); } else { SoundManager.Instance.PlaySound((int)SoundType.EFFCT_MENU_Close, optionModel.MobileOption.effectVolume); } } else if (msg.upgrade == Upgrade.Buff) { UI.IDialog.RequestDialogExit <UI.AloneGameBuffBuyDialog>(); if (msg.isBuy) { SoundManager.Instance.PlaySound((int)SoundType.EFFECT_BTN_DOWN, optionModel.MobileOption.effectVolume); } else { SoundManager.Instance.PlaySound((int)SoundType.EFFCT_MENU_Close, optionModel.MobileOption.effectVolume); } } }
private void ItemIsBuyDialog(ItmeIsBuyDialogMsg msg) { if (msg.upgrade == Upgrade.Skill) { UI.IDialog.RequestDialogExit <UI.AloneGameSkillUpgradeDialog>(); if (msg.isBuy) { if (msg.index == 0) { playerStatusModel.VocalSkill += 1; } else if (msg.index == 1) { playerStatusModel.DanceSkill += 1; } else if (msg.index == 2) { playerStatusModel.EntertainmentSkill += 1; } else if (msg.index == 3) { playerStatusModel.IntelligenceSkill += 1; } else if (msg.index == 4) { playerStatusModel.RelaxSkill += 1; } else if (msg.index == 5) { playerStatusModel.SelfManagementSkill += 1; } playerStatusModel.Potential -= msg.price; AloneGameSkillorBuffSelect(new AloneGameSkillorBuffSelectMsg(Upgrade.Skill)); } } else if (msg.upgrade == Upgrade.Buff) { UI.IDialog.RequestDialogExit <UI.AloneGameBuffBuyDialog>(); if (msg.isBuy) { } } }