private void EventManager_OnRemoteOperation(HCI_Project.Protocol.DeviceCode deviceCode, byte operationCode, System.Collections.Generic.Dictionary <byte, object> parameters) { switch ((RemoteOperationCode)operationCode) { case RemoteOperationCode.UpgradeSkill: int skillID = (int)parameters[0]; SkillTable.GetSkill(skillID).Learn(Global.Avatar); Time.timeScale = 1; break; case RemoteOperationCode.GameOver: SceneManager.LoadScene("Main_Head"); break; } }
private void EventManager_OnRemoteOperation(HCI_Project.Protocol.DeviceCode deviceCode, byte operationCode, System.Collections.Generic.Dictionary <byte, object> parameters) { switch ((RemoteOperationCode)operationCode) { case RemoteOperationCode.ShowUpgradeSkillPanel: List <Skill> skills = new List <Skill> { SkillTable.GetSkill((int)parameters[0]), SkillTable.GetSkill((int)parameters[1]), SkillTable.GetSkill((int)parameters[2]) }; Show(skills); break; case RemoteOperationCode.UpgradeSkill: Close(); break; } }