Esempio n. 1
0
    public void Setup(LevelConfig levelConfig)
    {
        Sprite sprite = EntryPoint.instance.loadAsset <Sprite>("sprites", levelConfig.id + ".jpg") as Sprite;

        preview.GetComponent <Image>().sprite = sprite;
        this.levelConfig = levelConfig;
        fragmentManager.SetupFragments(levelConfig);
    }