public void SetLevelOutcome(LevelOutcome outcome) { if (IsGameInProgres) { Debug.Log($"{outcome}"); Outcome = outcome; } }
public void EndSession(LevelOutcome outcome) { m_boat.gameObject.SetActive(false); switch (outcome) { case LevelOutcome.BoatDestroyed: case LevelOutcome.DriveOffLevel: break; case LevelOutcome.FoundHome: break; } Invoke(nameof(Reload), 5f); }
public void Initialize(Level level, string name, int index) { this.outcome = level.GetOutcome(); this.levelType = level.GetLevelType(); this.thumbnail = level.GetThumbnail(); this.name = name; this.levelNumber = index; resultsAchieved = new List <int>(); for (int i = 0; i < 3; ++i) { resultsAchieved.Add(0); } }
protected void recordOutcomeForConfig(LevelOutcome para_outcome) { if(acResultData == null) { acResultData = new ActivityResult(); } acResultData.addOutcomeEntry(para_outcome); }
public void addOutcomeEntry(LevelOutcome para_levelOutcome) { if(outcomeList == null) { outcomeList = new List<LevelOutcome>(); } outcomeList.Add(para_levelOutcome); }