Ejemplo n.º 1
0
 public void SetLevelOutcome(LevelOutcome outcome)
 {
     if (IsGameInProgres)
     {
         Debug.Log($"{outcome}");
         Outcome = outcome;
     }
 }
Ejemplo n.º 2
0
    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);
    }
Ejemplo n.º 3
0
    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);
        }
    }
Ejemplo n.º 4
0
 protected void recordOutcomeForConfig(LevelOutcome para_outcome)
 {
     if(acResultData == null) { acResultData = new ActivityResult(); }
     acResultData.addOutcomeEntry(para_outcome);
 }
Ejemplo n.º 5
0
 public void addOutcomeEntry(LevelOutcome para_levelOutcome)
 {
     if(outcomeList == null) { outcomeList = new List<LevelOutcome>(); }
     outcomeList.Add(para_levelOutcome);
 }