Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
YGOProUnity_V2
Commits
28cd6ccc
Commit
28cd6ccc
authored
Sep 04, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static bg
parent
d6252aa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Assets/Scripts/BackgroundLoader.cs
Assets/Scripts/BackgroundLoader.cs
+6
-0
No files found.
Assets/Scripts/BackgroundLoader.cs
View file @
28cd6ccc
...
...
@@ -6,6 +6,12 @@ public class BackgroundLoader : MonoBehaviour
{
private
void
Awake
()
{
if
(
File
.
Exists
(
"texture/common/desk.jpg"
))
{
gameObject
.
SetActive
(
false
);
return
;
}
var
player
=
GetComponent
<
VideoPlayer
>();
player
.
url
=
Path
.
Combine
(
Directory
.
GetCurrentDirectory
(),
player
.
url
);
player
.
Play
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment