コード例 #1
0
    // 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;
    }
コード例 #2
0
 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>();
 }