private void Awake() { if (instance == null) { instance = this; } }
private void Start() { #region INSTANCES ACQUIREMENT controller = Scr_Controller.instance; #endregion currentHp = maxHp; remainingExtraLife = extraLife; hpSlider.value = currentHp / maxHp; extraLifeText.text = extraLife.ToString(); }
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(); }
private void Start() { #region INSTANCES ACQUIREMENT controller = Scr_Controller.instance; #endregion possibleInput = new int[linkedSlot.Length]; //Check every linked slot to make a list of all possible input the player can press to procede to the next slot if (linkedSlot.Length > 0) { for (int i = 0; i < linkedSlot.Length; i++) { possibleInput[i] = linkedSlot[i].GetComponent <Scr_SlotBehavior>().inputIndex; } } }
private void Start() { conductor = Scr_Conductor.instance; controller = Scr_Controller.instance; activeBonusesUI = Scr_ActiveBonusesUI.instance; }