示例#1
0
 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;
 }
示例#2
0
    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();
    }