void Start() { loader = GetComponent <LoadingController>(); loader.CreateSlots(); UserProfile profile = new UserProfile(0, PlayerPrefs.GetInt("UserScore")); LevelSettings.SetUserProfile(profile); editor = FindObjectOfType <EditorInterfaceController>(); editor.ShowSlots(loader.GetSlots(), LoadSlot); editor.ShowLoading(true); LoadSlot(loader.GetCurrentSlot()); }
void Start() { loader = GetComponent <LoadingController>(); loader.CreateSlots(); ui = FindObjectOfType <BattleUI>(); if (LevelSettings.GetStructureOfPieces() == null) { ui.ShowLoading(true); LoadSlot(loader.GetCurrentSlot()); } else { ShowStartDialog(); } }