예제 #1
0
    public TutorialGoalCollectionRunner()
    {
        SceneLoader instance = SceneLoader.Instance;

        CurrentGoal = (from step in PlayerData.Instance.TutorialStep
                       select GetOrCreatePlayerGoalRunner(step)).TakeUntilDestroy(instance).ToReadOnlyReactiveProperty();
        DelayedCurrentGoal = CurrentGoal.Delay(TimeSpan.FromSeconds(3.0)).TakeUntilDestroy(instance).ToReadOnlyReactiveProperty();
        TutorialsDone      = (from step in PlayerData.Instance.TutorialStep
                              select step >= PersistentSingleton <Economies> .Instance.TutorialGoals.Count - 1).TakeUntilDestroy(instance).ToReadOnlyReactiveProperty();
        SetupTutorialGoals();
    }