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(); }
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(); }