public void Initialize() { Input.multiTouchEnabled = false; Localer.Init(); CreatePauseListener(); GameData = new GameData(); Settings = new ZPlayerSettings(); AtlasFramesCache = new AtlasFramesCache(); GameFlow = new GameFlow(); EventManager = new EventManager(); CurrentMenu = UISetType.Global; }
public void Initialize() { _json = PlayerPrefs.GetString("Json"); if (_json == string.Empty) { data = new Data(); } else { data = JsonUtility.FromJson <Data>(_json); } EventManager = new EventManager(); Settings = new ZPlayerSettings(); GameFlow = new GameFlow(); MusicManager.InitMusicManager(); Localer.Init(); Initialized = true; GameFlow.StartNewGame(); }