Beispiel #1
0
    protected override void DoAfterLoad()
    {
        base.DoAfterLoad();
        MenuTreeGenerator generator = GameObject.FindObjectOfType <MenuTreeGenerator>();

        generator.StoryFolder = LanguageFolderPath;
        //This path is the full path
        generator.PathType = SerializationManager.SavePathType.FileNameOnly;
    }
Beispiel #2
0
    public void Setup(HashSet <LargeCard> largeCards)
    {
        cards.Clear();

        foreach (LargeCard lCard in largeCards)
        {
            cards.Add(lCard.GetCardData());
        }
        //Need refence of the user/language folder that this card came from
        MenuTreeGenerator generator = GameObject.FindObjectOfType <MenuTreeGenerator>();

        Folder   = generator.StoryFolder;
        PathType = generator.PathType;
    }