Example #1
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            Debug.LogWarning("Multiple MiniGameCatalog(s) found!");
            Destroy(gameObject);
        }

        LoadResources();
    }
Example #2
0
    void Start()
    {
        catalog = MiniGameCatalog.instance;

        PopulateMiniGames();
    }