public override void OnNavigatedTo(INavigationParameters parameters)
 {
     if (parameters.ContainsKey("nav"))
     {
         walkthroughs = parameters.GetValue <Walkthrough>("nav");
         Image        = walkthroughs.Image;
         Heading      = walkthroughs.Heading;
         Caption      = walkthroughs.Caption;
     }
 }
Exemple #2
0
    private void Awake()
    {
        Instance = this;

#if !UNITY_EDITOR
        showWalkthrough = !PlayerPrefs.HasKey("DoneTutorial");
#endif

        if (showWalkthrough)
        {
            StartWalkthrough();
        }
        else
        {
            GameManager.Instance.birdSpawner.enabled = true;
        }
    }