Exemplo n.º 1
0
 void Start()
 {
     upSc          = GameObject.FindGameObjectWithTag("scripts").GetComponent <moleUp>();
     hitSc         = GameObject.FindGameObjectWithTag("scripts").GetComponent <moleHit>();
     sScript       = GameObject.FindGameObjectWithTag("ss").GetComponent <scoreSaver>();
     moleTimeLimit = 10;
 }
Exemplo n.º 2
0
    void Awake()
    {
        uiCanvas = GameObject.FindGameObjectWithTag("uiCanvas");
        uiCanvas.GetComponent <Canvas>().worldCamera = Camera.main;
        uiCanvas.GetComponent <Canvas>().enabled     = true;
        heartsBroken   = GameObject.FindGameObjectWithTag("heartB");
        hearts         = GameObject.FindGameObjectWithTag("heart");
        bonusGauge     = GameObject.FindGameObjectWithTag("gauge");
        scoreText      = GameObject.FindGameObjectWithTag("scoreTxt");
        rankTextScreen = GameObject.FindGameObjectWithTag("rankText");
        fader          = GameObject.FindGameObjectWithTag("fader");

        upSc    = GetComponent <moleUp>();
        bSc     = GetComponent <butSc>();
        sScript = GameObject.FindGameObjectWithTag("ss").GetComponent <scoreSaver>();
    }