private void OpenGameMasterContent() { Hashtable hash = new Hashtable(); hash[0] = minigameTaskId; hash[1] = minigameType.ToString(); MiniPetHUDUIManager.Instance.OpenUIMinipetType(MiniPetTypes.GameMaster, hash, this); }
private MiniPetGameMaster gameMasterScript; // Reference to minipet logic public void InitializeContent(string taskID, MinigameTypes type, MiniPetGameMaster gameMasterScript) { this.gameMasterScript = gameMasterScript; task = WellapadMissionController.Instance.GetTask(taskID); ImmutableDataWellapadTask missionTask = DataLoaderWellapadTasks.GetTask(task.TaskID); string desc = missionTask.GetText(); if (task.Amount > 0) { desc = String.Format(desc, task.Amount); } label.text = desc; spriteIcon.sprite = SpriteCacheManager.GetSprite("mapIcons" + type.ToString()); rewardButton.SetActive(false); SetCheckboxSprite(true); }