public static GameEvent Build(MissionProgress missionProgress) { return Build( missionEvent, missionProgress.mission.descriptor.missionName, missionProgress.status == MissionProgressStatus.SUCCESS ? "SUCCESS" : (missionProgress.status == MissionProgressStatus.FAILURE ? "FAILURE" : "STARTED")); }
// Use this for initialization void Start() { mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); mons = GameObject.FindGameObjectWithTag("BGM_MonsterArea").GetComponent <AudioSource>(); town = GameObject.FindGameObjectWithTag("BGM_Town").GetComponent <AudioSource>(); begin = GameObject.FindGameObjectWithTag("BGM_Begining").GetComponent <AudioSource>(); }
// Use this for initialization void Start() { next = GetComponent <AudioSource>(); mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); tool = GameObject.FindGameObjectWithTag("Tools3").GetComponent <Tool3>(); box = GameObject.FindGameObjectWithTag("TownKey").GetComponent <BoxCollider>(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); audio = GameObject.FindGameObjectWithTag("BossSet").GetComponent <AudioSource>(); anim = GetComponent <Animator>(); audioSource = GetComponent <AudioSource>(); }
void Start() { Level = LevelManager.GetLevelManager(); mission = Level.gameObject.GetComponent <MissionProgress>(); rider = Level.GetRider(); car = Level.car; tourist = Level.character.gameObject; playerAnim = tourist.GetComponent <Animator>(); }
void Start() { Level = LevelManager.GetLevelManager(); rider = Level.GetRider(); car = Level.car; iceCreamSaler = Level.character.gameObject; playerAnim = iceCreamSaler.GetComponent <Animator>(); mustFeedKids = param[Settings.difficult]; mission = Level.gameObject.GetComponent <MissionProgress>(); }
public IWorldMissionProgress GetMissionProgressForWorld(string i_world) { if (MissionProgress.ContainsKey(i_world)) { return(MissionProgress[i_world]); } else { EasyLogger.Instance.Log(LogTypes.Fatal, "No mission progress for world: " + i_world, ""); return(new WorldMissionProgress()); } }
public async Task UpdateMissionProgression(string userId, MissionProgress progress) { var user = await this.SelectAsync(userId); if (user == null) { return; } user.MissionProgress = progress; await this.DataContext.Users.FindOneAndReplaceAsync(u => u.Id == user.Id, user); }
public async Task StartMissionAsync(MissionProgress mission, string userId) { User user = await this.SelectAsync(userId); user.MissionProgress = mission; await this.DataContext.Users.FindOneAndReplaceAsync(x => x.Id == user.Id, user); if (mission == null) { await this.UserNotify.SendErrorNotif(userId, $"La mission a été abandonné"); } }
/// <summary> /// Returns the progress state of the given mission. /// </summary> /// <param name="uuid"></param> /// <returns></returns> public MissionProgress GetMissionProgress(string uuid) { for (int i = 0; i < missions.Count; i++) { if (missions[i].uuid == uuid) { return(missions[i]); } } MissionProgress progress = new MissionProgress(uuid); missions.Add(progress); return(progress); }
// Use this for initialization void Start() { slider = GetComponent <Slider>(); hurt = GetComponent <AudioSource>(); anim = GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); level = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerLevelData> (); HP = GameObject.FindGameObjectWithTag("HP").GetComponent <Slider>(); exp = GameObject.FindGameObjectWithTag("EXP").GetComponent <PlayerExperience> (); skill1 = GameObject.FindGameObjectWithTag("Skill1").GetComponent <Skill1> (); skill2 = GameObject.FindGameObjectWithTag("Skill2").GetComponent <Skill2> (); over = GameObject.FindGameObjectWithTag("GameOver").GetComponent <GameOver> (); mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress> (); }
public async Task StartMission([FromBody] MissionProgressionModel model) { MissionProgress mp = new MissionProgress(); if (model.MissionId != null) { mp.MissionId = model.MissionId; mp.StartDate = DateTime.UtcNow; } else { mp = null; } await this.UsersManager.StartMissionAsync(mp, this.User.Identity.Name); }
// Use this for initialization void Start() { skill1 = GameObject.FindGameObjectWithTag("Skill1").GetComponent <Skill1> (); skill2 = GameObject.FindGameObjectWithTag("Skill2").GetComponent <Skill2> (); //skill3 = GameObject.FindGameObjectWithTag ("Skill3").GetComponent<Skill3> (); tool1 = GameObject.FindGameObjectWithTag("Tools1").GetComponent <Tool1>(); tool2 = GameObject.FindGameObjectWithTag("Tools2").GetComponent <Tool2>(); tool3 = GameObject.FindGameObjectWithTag("Tools3").GetComponent <Tool3>(); respawn = GameObject.FindGameObjectWithTag("Respawn").GetComponent <Transform> (); mp = GameObject.FindGameObjectWithTag("MP").GetComponent <PlayerMPValue> (); hp = GameObject.FindGameObjectWithTag("HP").GetComponent <PlayerHealth> (); transitions = GameObject.FindGameObjectWithTag("Transitions").GetComponent <Animator> (); audio = GetComponent <AudioSource>(); mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress> (); }
/// <summary> /// ミッションの報酬受け取り通信 /// </summary> public static void CallGetMissionRewardApi(MissionProgress progress, Action <MissionRewardResponseData> onCompleted) { //リクエスト作成 var request = new SharkWebRequest <MissionRewardResponseData>("mission/getMissionReward"); request.SetRequestHeader("AccessToken", UserData.Get().hash); //リクエストパラメータセット request.SetRequestParameter(new Dictionary <string, object> { { "tMissionId", progress.tMissionId }, { "missionGroupId", (uint)progress.category } }); //通信完了時コールバック登録 request.onSuccess = (response) => { response.Setup(); //アイテムの付与 UserData.Get().AddItem((ItemType)response.mMissionReward.itemType, response.mMissionReward.itemId, response.mMissionReward.itemNum); //ジェムの同期 if (response.tGem != null) { UserData.Get().Set(response.tGem); } //ユーザー情報の同期 if (response.tUsers != null) { UserData.Get().Set(response.tUsers); } //ヘッダ更新 SharedUI.Instance.header.SetInfo(UserData.Get()); //無期限のプレゼントBoxの上限を超えているかのフラグ HomeScene.isMaxPossession = response.isMaxPossession; //通信完了 onCompleted?.Invoke(response); }; //通信開始 request.Send(); }
void OnMissionStarted(MissionInstance _mission) { UIWindow window; if (UIWindowManager.Instance().CreateWindow("Mission Progress", out window)) { RectTransform content = Instantiate(UIManager.Instance().missionProgressWindowContentPrefab); window.SetContent(content); MissionProgress missionProgress = content.GetComponent <MissionProgress>(); window.OnWindowClosed += (UIWindow w) => { m_company.EndCurrentMission(); }; missionProgress.SetMissionInstance(_mission); } }
// Use this for initialization void Start() { mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); next = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { next = GetComponent <AudioSource>(); mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); }
// Use this for initialization void Start() { mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); mons = GameObject.FindGameObjectWithTag("Rhino").GetComponent <MonsterAbility>(); spawn = GameObject.FindGameObjectWithTag("MissionRhinoSpawn"); }
void Awake() { missionProgress = GetComponent <MissionProgress>(); }
// Use this for initialization void Start() { insect = GetComponent <MonsterAbility>(); mis = GameObject.FindGameObjectWithTag("Mission").GetComponent <MissionProgress>(); }
public void SetupList() { buttons.ResetButtons(); availableMaps.Clear(); for (int i = 0; i < missionLibrary.Size(); i++) { MissionEntry mission = (MissionEntry)missionLibrary.GetEntryByIndex(i); MissionProgress progress = playerData.GetMissionProgress(mission.uuid); if (progress.cleared) { continue; } switch (mission.unlockReq) { case MissionEntry.Unlocking.TIME: if (mission.unlockDay <= currentDay.value) { availableMaps.Add(mission); } break; case MissionEntry.Unlocking.SQUADSIZE: if (playerData.stats.Count <= mission.squadSize) { availableMaps.Add(mission); } break; case MissionEntry.Unlocking.RECRUITED: if (playerData.HasCharacter(mission.characterReq.uuid)) { availableMaps.Add(mission); } break; case MissionEntry.Unlocking.MISSION: if (playerData.GetMissionProgress(mission.clearedMission.uuid).cleared) { availableMaps.Add(mission); } break; case MissionEntry.Unlocking.DEATH: if (playerData.IsDead(mission.characterReq.uuid)) { availableMaps.Add(mission); } break; } } for (int i = 0; i < availableMaps.Count; i++) { buttons.AddButton(availableMaps[i].entryName); } buttons.ForcePosition(0); locationIndex.value = (int)availableMaps[0].mapLocation; missionChangedEvent.Invoke(); ShowMissionInfo(); }
public void StoreData(MissionProgress mission) { id = mission.uuid; cleared = mission.cleared; }