// Start is called before the first frame update void Start() { myPlayer = GetComponent <VideoPlayer>(); levelHandler = GameObject.Find("LevelLoadUI").GetComponent <LevelLoadUI>(); allVideos = Resources.LoadAll <VideoClip>("Videos"); PlayRandomVideo(); shouldLoadVideo = false; }
private void Start() { Cursor.lockState = CursorLockMode.Confined; Cursor.visible = true; clickPos = GameObject.Find("ClickPos"); bodyCol = GetComponentInChildren <SphereCollider>(); bodyCol.enabled = false; theLine = GetComponent <LineRenderer>(); playerPos = GameObject.Find("PlayerPos").transform.position; transform.position = playerPos; llScript = GameObject.FindGameObjectWithTag("LevelLoadUI").GetComponent <LevelLoadUI>(); }