void Awake() { building = false; prefab = (GameObject)Resources.Load("Prefabs/WoodTower"); plane = GameObject.Find("Plane"); cam=GameObject.Find("camerarig"); s=cam.GetComponent<start>(); allowed=s.GetAllowed(); SetScore (); SetGold (); }