Example #1
0
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(this);
        }
        else
        {
            Destroy(this);
        }

        #if UNITY_STANDALONE_OSX
        currentSaveMode = SaveMode.Default;
        Debug.Log("Relative saving not compatible with OSX, changing to default.");
        #endif

        dataManager      = GetComponent <DataManager>();
        gridManager      = GetComponent <GridManager>();
        tutorialManager  = GetComponent <TutorialManager>();
        inventoryManager = GetComponent <InventoryManager>();
        scoreManager     = GetComponent <ScoreManager>();
        saveManager      = GetComponent <SaveManager>();
        linkJava         = GetComponent <LinkJava>();
        tracker          = GetComponent <Tracker>();

        linkJava.Init();
        saveManager.Init();
        scoreManager.Init();
    }
Example #2
0
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(this);
        }

        else
        {
            Destroy(this);
        }

        dataManager      = GetComponent <DataManager>();
        gridManager      = GetComponent <GridManager>();
        tutorialManager  = GetComponent <TutorialManager>();
        inventoryManager = GetComponent <InventoryManager>();
        scoreManager     = GetComponent <ScoreManager>();
        saveManager      = GetComponent <SaveManager>();
        linkJava         = GetComponent <LinkJava>();
        tracker          = GetComponent <Tracker>();

        linkJava.Init();
        saveManager.Init();
        scoreManager.Init();
    }