private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemple #2
0
    private void Start()
    {
        breakAudioSource = transform.GetChild(0).GetComponent <AudioSource>();

        controller      = Scr_Controller.instance;
        possibleInputUI = Scr_PossibleInputUI.instance;
        chainInputUI    = Scr_ChainInputUI.instance;

        secPerBeat = 60f / bpm;

        dspSongTime = (float)AudioSettings.dspTime;

        songAudioSource = GetComponent <AudioSource>();
        songAudioSource.Play();
    }
Exemple #3
0
    private void Start()
    {
        #region INSTANCES ACQUIREMENT
        conductor           = Scr_Conductor.instance;
        partition           = Scr_Partition.instance;
        propsOnBeat         = Scr_PropsOnBeat.instance;
        possibleInputUI     = Scr_PossibleInputUI.instance;
        dummyHealthManager  = Scr_DummyHealthManager.instance;
        chainInputUI        = Scr_ChainInputUI.instance;
        equipement          = Scr_Equipement.instance;
        melodySpriteManager = Scr_MelodySpriteManager.instance;
        #endregion

        chain     = new List <int>();
        activeDmg = baseDamage;
    }