Ejemplo n.º 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Ejemplo n.º 2
0
    private void Start()
    {
        #region INSTANCES ACQUIREMENT
        controller = Scr_Controller.instance;
        #endregion

        currentHp          = maxHp;
        remainingExtraLife = extraLife;

        hpSlider.value     = currentHp / maxHp;
        extraLifeText.text = extraLife.ToString();
    }
Ejemplo n.º 3
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();
    }
Ejemplo n.º 4
0
    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;
            }
        }
    }
Ejemplo n.º 5
0
 private void Start()
 {
     conductor       = Scr_Conductor.instance;
     controller      = Scr_Controller.instance;
     activeBonusesUI = Scr_ActiveBonusesUI.instance;
 }