void Start() { sluttevent = GameObject.Find("/VentilLogikk").GetComponent <SluttVent>(); gameObject.AddComponent <Rigidbody>().useGravity = false; gameObject.AddComponent <BoxCollider>().isTrigger = true; progress = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ScoreCounter>(); bolts = GameObject.Find("/Bolts/SkrueLogikk").GetComponent <BoltAction>(); }
void Start() { sluttvent = GameObject.Find("/VentilLogikk").GetComponent <SluttVent>(); progress = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ScoreCounter>(); audioSource = GetComponent <AudioSource>(); makeNewScrew(); skrue0 = GameObject.Find("Screw0"); }