Exemplo n.º 1
0
    void Start()
    {
        editor = ChartEditor.Instance;

        LoadSoundClip();

        initSize             = transform.localScale.y;
        transform.localScale = new Vector3(transform.localScale.x, 0, transform.localScale.z);

        hitWindowFeeder         = gameObject.AddComponent <HitWindowFeeder>();
        guitarGameplayRulestate = new GuitarGameplayRulestate(KickMissFeedback);
        drumsGameplayRulestate  = new DrumsGameplayRulestate(KickMissFeedback);

        initialised = true;
        statsPanel.SetActive(false);

        editor.events.editorStateChangedEvent.Register(OnApplicationModeChanged);
        editor.events.chartReloadedEvent.Register(OnChartReloaded);
    }
    void Start()
    {
        LoadSoundClip();

        editor = GameObject.FindGameObjectWithTag("Editor").GetComponent <ChartEditor>();

        initSize             = transform.localScale.y;
        transform.localScale = new Vector3(transform.localScale.x, 0, transform.localScale.z);

        hitWindowFeeder         = gameObject.AddComponent <HitWindowFeeder>();
        guitarGameplayRulestate = new GuitarGameplayRulestate(KickMissFeedback);
        drumsGameplayRulestate  = new DrumsGameplayRulestate(KickMissFeedback);

        initialised = true;
        statsPanel.SetActive(false);

        EventsManager.onApplicationModeChangedEventList.Add(OnApplicationModeChanged);
        EventsManager.onChartReloadEventList.Add(OnChartReloaded);
    }
Exemplo n.º 3
0
    void Start()
    {
        byte[] comboBreakBytes = comboBreak.GetWavBytes();
        sample  = Bass.BASS_SampleLoad(comboBreakBytes, 0, comboBreakBytes.Length, 1, BASSFlag.BASS_DEFAULT);
        channel = Bass.BASS_SampleGetChannel(sample, false);
        editor  = GameObject.FindGameObjectWithTag("Editor").GetComponent <ChartEditor>();

        initSize             = transform.localScale.y;
        transform.localScale = new Vector3(transform.localScale.x, 0, transform.localScale.z);

        hitWindowFeeder         = gameObject.AddComponent <HitWindowFeeder>();
        guitarGameplayRulestate = new GuitarGameplayRulestate(KickMissFeedback);
        drumsGameplayRulestate  = new DrumsGameplayRulestate(KickMissFeedback);

        initialised = true;
        statsPanel.SetActive(false);

        EventsManager.onApplicationModeChangedEventList.Add(OnApplicationModeChanged);
        EventsManager.onChartReloadEventList.Add(OnChartReloaded);
    }