// Use this for initialization
    void Awake()
    {
        Debug.Log("Initialising " + versionNumber.text);

        currentSongAudio = new SongAudioManager();

        assets = GetComponent <ChartEditorAssets>();
        selectedObjectsManager = new SelectedObjectsManager(this);
        sfxAudioStreams        = new LoadedStreamStore(soundMapConfig);

        _minPos = 0;
        _maxPos = 0;

        RegisterSystems();

        movement = GameObject.FindGameObjectWithTag("Movement").GetComponent <MovementController>();

        isDirty = false;

        gameObject.AddComponent <UITabbing>();

        windowHandleManager = new WindowHandleManager(versionNumber.text, GetComponent <Settings>().productName);
        errorManager        = gameObject.AddComponent <ErrorManager>();
        toolManager.Init();
        interactionMethodManager.Init();

        events.chartReloadedEvent.Register(OnChartReloaded);
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Awake()
    {
        Debug.Log(string.Format("Initialising {0} v{1}", Application.productName, Application.version));

#if !UNITY_EDITOR
        Application.wantsToQuit += QuittingEditCheck;
#endif
        Application.quitting += FinaliseQuit;

        currentSongAudio = new SongAudioManager();

        assets = GetComponent <ChartEditorAssets>();
        selectedObjectsManager = new SelectedObjectsManager(this);
        sfxAudioStreams        = new LoadedStreamStore(soundMapConfig);

        _minPos = 0;
        _maxPos = 0;

        RegisterSystems();

        movement = GameObject.FindGameObjectWithTag("Movement").GetComponent <MovementController>();

        isDirty = false;

        gameObject.AddComponent <UITabbing>();

        windowHandleManager = new WindowHandleManager(string.Format("{0} v{1} {2}", Application.productName, Application.version, Globals.applicationBranchName), GetComponent <Settings>().productName);
        errorManager        = gameObject.AddComponent <ErrorManager>();
        toolManager.Init();
        interactionMethodManager.Init();

        events.chartReloadedEvent.Register(OnChartReloaded);
    }
    // Use this for initialization
    void Awake()
    {
        Debug.Log("Initialising " + versionNumber.text);

#if !UNITY_EDITOR
        Application.wantsToQuit += QuittingEditCheck;
#endif
        Application.quitting += FinaliseQuit;

#if SDL_VIDEO
        // Init for window manager
        if (SDL2.SDL.SDL_Init(SDL2.SDL.SDL_INIT_VIDEO) < 0)
        {
            Debug.LogError("SDL could not initialise! SDL Error: " + SDL2.SDL.SDL_GetError());
        }
        else
        {
            Debug.Log("Successfully initialised video SDL");
        }
#endif
        currentSongAudio = new SongAudioManager();

        assets = GetComponent <ChartEditorAssets>();
        selectedObjectsManager = new SelectedObjectsManager(this);
        sfxAudioStreams        = new LoadedStreamStore(soundMapConfig);

        _minPos = 0;
        _maxPos = 0;

        RegisterSystems();

        movement = GameObject.FindGameObjectWithTag("Movement").GetComponent <MovementController>();

        isDirty = false;

        gameObject.AddComponent <UITabbing>();

        windowHandleManager = new WindowHandleManager(versionNumber.text, GetComponent <Settings>().productName);
        errorManager        = gameObject.AddComponent <ErrorManager>();
        toolManager.Init();
        interactionMethodManager.Init();

        events.chartReloadedEvent.Register(OnChartReloaded);
    }