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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
赤子奈落
YGOProUnity_V2
Commits
90ad191d
Commit
90ad191d
authored
Sep 05, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
710dd43b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
7 deletions
+45
-7
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
+2
-4
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
+8
-3
ProjectSettings/MemorySettings.asset
ProjectSettings/MemorySettings.asset
+35
-0
ProjectSettings/boot.config
ProjectSettings/boot.config
+0
-0
No files found.
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
View file @
90ad191d
...
...
@@ -1429,10 +1429,8 @@ public class gameCard : OCGobject
private
async
void
LoadCard
()
{
Debug
.
Log
(
data
.
Id
);
gameObject_face
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
await
GameTextureManager
.
GetCardPicture
(
data
.
Id
)
??
(
p
.
controller
==
0
?
GameTextureManager
.
myBack
:
GameTextureManager
.
opBack
);
gameObject_face
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
await
GameTextureManager
.
GetCardPicture
(
data
.
Id
,
p
.
controller
==
0
?
GameTextureManager
.
myBack
:
GameTextureManager
.
opBack
);
if
(
game_object_verticle_drawing
)
game_object_verticle_drawing
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
await
GameTextureManager
.
GetCardCloseUp
(
data
.
Id
);
...
...
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
View file @
90ad191d
...
...
@@ -79,9 +79,14 @@ public class GameTextureManager
private
static
readonly
Dictionary
<
int
,
Task
<
Texture2D
>>
loadedCloseUp
=
new
();
private
static
readonly
Dictionary
<
string
,
Texture2D
>
loadedUI
=
new
();
public
static
async
Task
<
Texture2D
>
GetCardPicture
(
int
code
)
public
static
Task
<
Texture2D
>
GetCardPicture
(
int
code
)
{
if
(
code
==
0
)
return
null
;
return
GetCardPicture
(
code
,
myBack
);
}
public
static
async
Task
<
Texture2D
>
GetCardPicture
(
int
code
,
Texture2D
zero
)
{
if
(
code
==
0
)
return
zero
;
if
(
loadedPicture
.
TryGetValue
(
code
,
out
var
cached
))
return
await
cached
;
foreach
(
var
extname
in
new
[]
{
".png"
,
".jpg"
})
{
...
...
@@ -94,7 +99,7 @@ public class GameTextureManager
}
}
return
null
;
return
unknown
;
}
public
static
async
Task
<
Texture2D
>
GetCardCloseUp
(
int
code
)
...
...
ProjectSettings/MemorySettings.asset
0 → 100644
View file @
90ad191d
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!387306366
&1
MemorySettings
:
m_ObjectHideFlags
:
0
m_EditorMemorySettings
:
m_MainAllocatorBlockSize
:
-1
m_ThreadAllocatorBlockSize
:
-1
m_MainGfxBlockSize
:
-1
m_ThreadGfxBlockSize
:
-1
m_CacheBlockSize
:
-1
m_TypetreeBlockSize
:
-1
m_ProfilerBlockSize
:
-1
m_ProfilerEditorBlockSize
:
-1
m_BucketAllocatorGranularity
:
-1
m_BucketAllocatorBucketsCount
:
-1
m_BucketAllocatorBlockSize
:
-1
m_BucketAllocatorBlockCount
:
-1
m_ProfilerBucketAllocatorGranularity
:
-1
m_ProfilerBucketAllocatorBucketsCount
:
-1
m_ProfilerBucketAllocatorBlockSize
:
-1
m_ProfilerBucketAllocatorBlockCount
:
-1
m_TempAllocatorSizeMain
:
-1
m_JobTempAllocatorBlockSize
:
-1
m_BackgroundJobTempAllocatorBlockSize
:
-1
m_JobTempAllocatorReducedBlockSize
:
-1
m_TempAllocatorSizeGIBakingWorker
:
-1
m_TempAllocatorSizeNavMeshWorker
:
-1
m_TempAllocatorSizeAudioWorker
:
-1
m_TempAllocatorSizeCloudWorker
:
-1
m_TempAllocatorSizeGfx
:
-1
m_TempAllocatorSizeJobWorker
:
-1
m_TempAllocatorSizeBackgroundWorker
:
-1
m_TempAllocatorSizePreloadManager
:
-1
m_PlatformMemorySettings
:
{}
ProjectSettings/boot.config
0 → 100644
View file @
90ad191d
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