Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     _episodes         = new List <EpisodeData>();
     _episodes         = StoryPoints.Select(c => c.Episode).ToList();
     CurrentStoryPoint = StoryPoints.First();
     CurrentStoryPoint.Activate();
     Player.CurrentEpisode = CurrentStoryPoint.Episode;
     Description.text      = CurrentStoryPoint.Episode.Description;
 }
Ejemplo n.º 2
0
    public void NextStoryPoint()
    {
        //  CurrentStoryPoint.IsActive = false;
        var currentIndex = StoryPoints.ToList().IndexOf(CurrentStoryPoint);

        currentIndex++;
        if (currentIndex >= StoryPoints.Length)
        {
            return;
        }
        CurrentStoryPoint     = StoryPoints[currentIndex];
        Player.CurrentEpisode = CurrentStoryPoint.Episode;
        CurrentStoryPoint.Activate();
        Description.text = CurrentStoryPoint.Episode.Description;
    }