예제 #1
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);

        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);
    }
예제 #3
0
    // Use this for initialization
    void Awake()
    {
        Debug.Log("Initialising " + versionNumber.text);

        currentEditor          = this;
        _songObjectPoolManager = GetComponent <SongObjectPoolManager>();

        _minPos = 0;
        _maxPos = 0;

        // Create a default song
        currentSong = new Song();
        LoadSong(currentSong, true);

        // Bass init
        if (!Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero))
        {
            Debug.LogError("Failed Bass.Net initialisation");
        }
        else
        {
            Debug.Log("Bass.Net initialised");
        }

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

        isDirty = false;

        loadingScreen.gameObject.SetActive(true);

        inputManager = gameObject.AddComponent <InputManager>();
        gameObject.AddComponent <UITabbing>();

        windowHandleManager = new WindowHandleManager(versionNumber.text, GetComponent <Settings>().productName);
    }
    // Use this for initialization
    void Awake()
    {
        Debug.Log("Initialising " + versionNumber.text);

        _songObjectPoolManager = GetComponent <SongObjectPoolManager>();

        _minPos = 0;
        _maxPos = 0;

        // Create a default song
        currentSong = new Song();
        LoadSong(currentSong, true);

        // Bass init
        AudioManager.Init();

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

        isDirty = false;

        loadingScreen.gameObject.SetActive(true);

        inputManager = gameObject.AddComponent <InputManager>();
        gameObject.AddComponent <UITabbing>();

        windowHandleManager = new WindowHandleManager(versionNumber.text, GetComponent <Settings>().productName);
        errorManager        = gameObject.AddComponent <ErrorManager>();
    }
    // 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);
    }