void Start() { highlightZebSafebox = GameObject.Find("highlightZebSafebox"); explosionScript = GameObject.Find("explosion").GetComponent <safeBoxExplosion_level03>(); rhino = GameObject.Find("rhino"); rhinoScript = GameObject.Find("rhino").GetComponent <rhino_Level_03>(); timerSB_10secondsScript = GameObject.Find("timerSB_10seconds").GetComponent <timerSB_10seconds>(); anim = this.GetComponent <Animator>(); }
void Start() { rhinoScript = GameObject.Find("rhino").GetComponent <rhino_Level_03>(); anim = this.GetComponent <Animator>(); safeBoxObject = GameObject.Find("safeBox"); safeBoxObjectopened = GameObject.Find("safeBoxOpened"); moneySafebox = GameObject.Find("moneySafebox"); camera = GameObject.Find("Main Camera").GetComponent <Camera>(); cameraPos = camera.transform.position; }