コード例 #1
0
    public GameplayStateSystem(HitWindowFeeder hitWindowFeeder, bool botEnabled)
    {
        this.hitWindowFeeder = hitWindowFeeder;
        this.botEnabled      = botEnabled;

        currentUpdate = UpdateWaitingForNotesSettled;
    }
コード例 #2
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);
    }
コード例 #3
0
    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);
    }
コード例 #4
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);
    }