Esempio n. 1
0
 private void Initialisation()
 {
     gameManager    = FindObjectOfType <scp_GameManager>();
     fallingObjects = FindObjectOfType <scp_FallingObjectsLogic>();
     vfx            = FindObjectOfType <scp_VfxManager>();
     ripple         = FindObjectOfType <scp_Ripple>();
     ui             = FindObjectOfType <scp_UIManager>();
     audioObject    = GameObject.Find("Pickups").GetComponent <scp_AudioManager>();
 }
Esempio n. 2
0
    private void Initialisation()
    {
        packages    = FindObjectOfType <scp_FallingObjectsLogic>();
        gameManager = FindObjectOfType <scp_GameManager>();

        scoreTextBox      = GameObject.Find("txtPro_Score").GetComponent <TextMeshProUGUI>();
        scoreTextBox.text = "SCORE:" + gameManager.score.ToString();

        livesTextBox      = GameObject.Find("txtPro_Lives").GetComponent <TextMeshProUGUI>();
        livesTextBox.text = "LIVES: " + gameManager.lives.ToString("f0");

        timeTextBox = GameObject.Find("txt_Timer").GetComponent <Text>();
    }