Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        captureZone = GameObject.FindGameObjectWithTag("Capture Zone").GetComponent <CaptureZoneController>();
        gameUI      = GameObject.FindGameObjectWithTag("HUD").GetComponent <InGameUIController>();
        playStats   = GameObject.FindGameObjectWithTag("PlayerStats").GetComponent <PlayerStats>();

        if (gameUI)
        {
            gameUI.objective1Text.text = objective1;
        }
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     tutHUD        = GameObject.FindGameObjectWithTag("TutHUD").GetComponent <TutorialHUDController>();
     tutObjectiveC = GameObject.FindGameObjectWithTag("Objectives").GetComponent <TutorialObjectiveScript>();
     zone          = GameObject.FindGameObjectWithTag("Capture Zone").GetComponent <CaptureZoneController>();
 }