Example #1
0
 void Start()
 {
     highlightZebSafebox = GameObject.Find("highlightZebSafebox");
     explosionScript     = GameObject.Find("explosion").GetComponent <safeBoxExplosion_level05>();
     rhino                   = GameObject.Find("rhino");
     rhinoScript             = GameObject.Find("rhino").GetComponent <rhino_Level_05>();
     timerSB_10secondsScript = GameObject.Find("timerSB_10seconds").GetComponent <timerSB_10seconds>();
     anim = this.GetComponent <Animator>();
 }
    void Start()
    {
        rhinoScript = GameObject.Find("rhino").GetComponent <rhino_Level_05>();
        anim        = this.GetComponent <Animator>();

        safeBoxObject       = GameObject.Find("safeBox");
        safeBoxObjectopened = GameObject.Find("safeBoxOpened");

        moneySafebox = GameObject.Find("moneySafebox");

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