Esempio n. 1
0
    void Start()
    {
        monkeyScript  = GameObject.Find("monkey").GetComponent <monkey_Level_09>();
        zebraScript   = GameObject.Find("zebra").GetComponent <zebra_Level_09>();
        rhinoScript   = GameObject.Find("rhino").GetComponent <rhino_Level_09>();
        gorillaScript = GameObject.Find("gorilla").GetComponent <gorilla_Level_09>();

        dogFightDustScript = GameObject.Find("dogFightDust").GetComponent <dogFightDust>();

        monkey       = GameObject.Find("monkey");
        zebra        = GameObject.Find("zebra");
        rhino        = GameObject.Find("rhino");
        dogLimitArea = GameObject.Find("dogLimitArea");

        anim = this.GetComponent <Animator>();

        highlightZebMeercat01 = GameObject.Find("highlightZebMeercat01");
        highlightZebRabbit01  = GameObject.Find("highlightZebRabbit01");
        highlightZebRabbit02  = GameObject.Find("highlightZebRabbit02");
        highlightZebRabbit03  = GameObject.Find("highlightZebRabbit03");
        highlightZebRabbit04  = GameObject.Find("highlightZebRabbit04");
        highlightZebTeller01  = GameObject.Find("highlightZebTeller01");
        highlightZebTeller02  = GameObject.Find("highlightZebTeller02");
        highlightZebTeller03  = GameObject.Find("highlightZebTeller03");
        highlightZebTeller04  = GameObject.Find("highlightZebTeller04");
        highlightZebSafebox   = GameObject.Find("highlightZebSafebox");
        highlightZebSafebox02 = GameObject.Find("highlightZebSafebox02");
        highlightZebSafebox03 = GameObject.Find("highlightZebSafebox03");
    }
 void Start()
 {
     highlightZebSafebox   = GameObject.Find("highlightZebSafebox");
     highlightZebSafebox02 = GameObject.Find("highlightZebSafebox02");
     highlightZebSafebox03 = GameObject.Find("highlightZebSafebox03");
     explosionScript       = GameObject.Find("explosion").GetComponent <safeBoxExplosion_level09>();
     explosion02Script     = GameObject.Find("explosion02").GetComponent <safeBoxExplosion02_level09>();
     explosion03Script     = GameObject.Find("explosion03").GetComponent <safeBoxExplosion03_level09>();
     rhino                     = GameObject.Find("rhino");
     rhinoScript               = GameObject.Find("rhino").GetComponent <rhino_Level_09>();
     timerSB_10secondsScript   = GameObject.Find("timerSB_10seconds").GetComponent <timerSB_10seconds>();
     timerSB02_10secondsScript = GameObject.Find("timerSB02_10seconds").GetComponent <timerSB02_10seconds>();
     timerSB03_10secondsScript = GameObject.Find("timerSB03_10seconds").GetComponent <timerSB03_10seconds>();
     anim = this.GetComponent <Animator>();
 }
Esempio n. 3
0
    void Start()
    {
        dog           = GameObject.Find("dog");
        gorillaScript = GameObject.Find("gorilla").GetComponent <gorilla_Level_09>();

        rhinoScript = GameObject.Find("rhino").GetComponent <rhino_Level_09>();
        anim        = this.GetComponent <Animator>();

        safeBoxObject03       = GameObject.Find("safeBox03");
        safeBoxObjectopened03 = GameObject.Find("safeBoxOpened03");

        moneySafebox03 = GameObject.Find("moneySafebox03");

        camera            = GameObject.Find("Main Camera").GetComponent <Camera>();
        cameraShakeScript = GameObject.Find("Main Camera").GetComponent <cameraZoonChange>();
        cameraPos         = camera.transform.position;
    }