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
fa1036f1
Commit
fa1036f1
authored
Aug 31, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare for upgrade
parent
b1f483bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
52 deletions
+59
-52
Assets/ArtSystem/arrow/Mega-Fiers/Scripts/MegaGrab/DOFCamera.cs
.../ArtSystem/arrow/Mega-Fiers/Scripts/MegaGrab/DOFCamera.cs
+1
-1
Assets/old/UiverseAssests/itween/iTween.cs
Assets/old/UiverseAssests/itween/iTween.cs
+58
-51
No files found.
Assets/ArtSystem/arrow/Mega-Fiers/Scripts/MegaGrab/DOFCamera.cs
View file @
fa1036f1
...
...
@@ -9,7 +9,7 @@ public class MGBlendTable
int
mTableSzXY
;
// layer sz
int
mTotalSz
;
// all layers
float
[]
mpTable
;
// the dither tables
Random
mRandom
;
// maxsdk pseudo-random number generator
System
.
Random
mRandom
;
// maxsdk pseudo-random number generator
int
LayerIndex
(
int
nImage
)
{
...
...
Assets/old/UiverseAssests/itween/iTween.cs
View file @
fa1036f1
...
...
@@ -699,11 +699,12 @@ public class iTween : MonoBehaviour{
}
//set tempColor and base fromColor:
if
(
target
.
GetComponent
(
typeof
(
GUITexture
))){
tempColor
=
fromColor
=
target
.
GetComponent
<
GUITexture
>().
color
;
}
else
if
(
target
.
GetComponent
(
typeof
(
GUIText
))){
tempColor
=
fromColor
=
target
.
GetComponent
<
GUIText
>().
material
.
color
;
}
else
if
(
target
.
GetComponent
<
Renderer
>()){
// if(target.GetComponent(typeof(GUITexture))){
// tempColor=fromColor=target.GetComponent<GUITexture>().color;
// }else if(target.GetComponent(typeof(GUIText))){
// tempColor=fromColor=target.GetComponent<GUIText>().material.color;
// }else
if
(
target
.
GetComponent
<
Renderer
>()){
tempColor
=
fromColor
=
target
.
GetComponent
<
Renderer
>().
material
.
color
;
}
else
if
(
target
.
GetComponent
<
Light
>()){
tempColor
=
fromColor
=
target
.
GetComponent
<
Light
>().
color
;
...
...
@@ -737,11 +738,12 @@ public class iTween : MonoBehaviour{
}
//apply fromColor:
if
(
target
.
GetComponent
(
typeof
(
GUITexture
))){
target
.
GetComponent
<
GUITexture
>().
color
=
fromColor
;
}
else
if
(
target
.
GetComponent
(
typeof
(
GUIText
))){
target
.
GetComponent
<
GUIText
>().
material
.
color
=
fromColor
;
}
else
if
(
target
.
GetComponent
<
Renderer
>()){
// if(target.GetComponent(typeof(GUITexture))){
// target.GetComponent<GUITexture>().color=fromColor;
// }else if(target.GetComponent(typeof(GUIText))){
// target.GetComponent<GUIText>().material.color=fromColor;
// }else
if
(
target
.
GetComponent
<
Renderer
>()){
target
.
GetComponent
<
Renderer
>().
material
.
color
=
fromColor
;
}
else
if
(
target
.
GetComponent
<
Light
>()){
target
.
GetComponent
<
Light
>().
color
=
fromColor
;
...
...
@@ -3377,13 +3379,14 @@ public class iTween : MonoBehaviour{
//colors = new Color[3];
//from and init to values:
if
(
GetComponent
(
typeof
(
GUITexture
))){
colors
=
new
Color
[
1
,
3
];
colors
[
0
,
0
]
=
colors
[
0
,
1
]
=
GetComponent
<
GUITexture
>().
color
;
}
else
if
(
GetComponent
(
typeof
(
GUIText
))){
colors
=
new
Color
[
1
,
3
];
colors
[
0
,
0
]
=
colors
[
0
,
1
]
=
GetComponent
<
GUIText
>().
material
.
color
;
}
else
if
(
GetComponent
<
Renderer
>()){
// if(GetComponent(typeof(GUITexture))){
// colors = new Color[1,3];
// colors[0,0] = colors[0,1] = GetComponent<GUITexture>().color;
// }else if(GetComponent(typeof(GUIText))){
// colors = new Color[1,3];
// colors[0,0] = colors[0,1] = GetComponent<GUIText>().material.color;
// }else
if
(
GetComponent
<
Renderer
>()){
colors
=
new
Color
[
GetComponent
<
Renderer
>().
materials
.
Length
,
3
];
for
(
int
i
=
0
;
i
<
GetComponent
<
Renderer
>().
materials
.
Length
;
i
++)
{
colors
[
i
,
0
]=
GetComponent
<
Renderer
>().
materials
[
i
].
GetColor
(
namedcolorvalue
.
ToString
());
...
...
@@ -4153,13 +4156,14 @@ public class iTween : MonoBehaviour{
*/
//apply:
if
(
GetComponent
(
typeof
(
GUITexture
))){
//guiTexture.color=colors[2];
GetComponent
<
GUITexture
>().
color
=
colors
[
0
,
2
];
}
else
if
(
GetComponent
(
typeof
(
GUIText
))){
//guiText.material.color=colors[2];
GetComponent
<
GUIText
>().
material
.
color
=
colors
[
0
,
2
];
}
else
if
(
GetComponent
<
Renderer
>()){
// if(GetComponent(typeof(GUITexture))){
// //guiTexture.color=colors[2];
// GetComponent<GUITexture>().color=colors[0,2];
// }else if(GetComponent(typeof(GUIText))){
// //guiText.material.color=colors[2];
// GetComponent<GUIText>().material.color=colors[0,2];
// }else
if
(
GetComponent
<
Renderer
>()){
//renderer.material.color=colors[2];
for
(
int
i
=
0
;
i
<
colors
.
GetLength
(
0
);
i
++)
{
GetComponent
<
Renderer
>().
materials
[
i
].
SetColor
(
namedcolorvalue
.
ToString
(),
colors
[
i
,
2
]);
...
...
@@ -4171,13 +4175,14 @@ public class iTween : MonoBehaviour{
//dial in:
if
(
percentage
==
1
){
if
(
GetComponent
(
typeof
(
GUITexture
))){
//guiTexture.color=colors[1];
GetComponent
<
GUITexture
>().
color
=
colors
[
0
,
1
];
}
else
if
(
GetComponent
(
typeof
(
GUIText
))){
//guiText.material.color=colors[1];
GetComponent
<
GUIText
>().
material
.
color
=
colors
[
0
,
1
];
}
else
if
(
GetComponent
<
Renderer
>()){
// if(GetComponent(typeof(GUITexture))){
// //guiTexture.color=colors[1];
// GetComponent<GUITexture>().color=colors[0,1];
// }else if(GetComponent(typeof(GUIText))){
// //guiText.material.color=colors[1];
// GetComponent<GUIText>().material.color=colors[0,1];
// }else
if
(
GetComponent
<
Renderer
>()){
//renderer.material.color=colors[1];
for
(
int
i
=
0
;
i
<
colors
.
GetLength
(
0
);
i
++)
{
GetComponent
<
Renderer
>().
materials
[
i
].
SetColor
(
namedcolorvalue
.
ToString
(),
colors
[
i
,
1
]);
...
...
@@ -4907,11 +4912,12 @@ public class iTween : MonoBehaviour{
}
//init values:
if
(
target
.
GetComponent
(
typeof
(
GUITexture
))){
colors
[
0
]
=
colors
[
1
]
=
target
.
GetComponent
<
GUITexture
>().
color
;
}
else
if
(
target
.
GetComponent
(
typeof
(
GUIText
))){
colors
[
0
]
=
colors
[
1
]
=
target
.
GetComponent
<
GUIText
>().
material
.
color
;
}
else
if
(
target
.
GetComponent
<
Renderer
>()){
// if(target.GetComponent(typeof(GUITexture))){
// colors[0] = colors[1] = target.GetComponent<GUITexture>().color;
// }else if(target.GetComponent(typeof(GUIText))){
// colors[0] = colors[1] = target.GetComponent<GUIText>().material.color;
// }else
if
(
target
.
GetComponent
<
Renderer
>()){
colors
[
0
]
=
colors
[
1
]
=
target
.
GetComponent
<
Renderer
>().
material
.
color
;
}
else
if
(
target
.
GetComponent
<
Light
>()){
colors
[
0
]
=
colors
[
1
]
=
target
.
GetComponent
<
Light
>().
color
;
...
...
@@ -4942,11 +4948,12 @@ public class iTween : MonoBehaviour{
colors
[
3
].
a
=
Mathf
.
SmoothDamp
(
colors
[
0
].
a
,
colors
[
1
].
a
,
ref
colors
[
2
].
a
,
time
);
//apply:
if
(
target
.
GetComponent
(
typeof
(
GUITexture
))){
target
.
GetComponent
<
GUITexture
>().
color
=
colors
[
3
];
}
else
if
(
target
.
GetComponent
(
typeof
(
GUIText
))){
target
.
GetComponent
<
GUIText
>().
material
.
color
=
colors
[
3
];
}
else
if
(
target
.
GetComponent
<
Renderer
>()){
// if(target.GetComponent(typeof(GUITexture))){
// target.GetComponent<GUITexture>().color=colors[3];
// }else if(target.GetComponent(typeof(GUIText))){
// target.GetComponent<GUIText>().material.color=colors[3];
// }else
if
(
target
.
GetComponent
<
Renderer
>()){
target
.
GetComponent
<
Renderer
>().
material
.
color
=
colors
[
3
];
}
else
if
(
target
.
GetComponent
<
Light
>()){
target
.
GetComponent
<
Light
>().
color
=
colors
[
3
];
...
...
@@ -6071,7 +6078,7 @@ public class iTween : MonoBehaviour{
/// </param>
public
static
void
CameraFadeSwap
(
Texture2D
texture
){
if
(
cameraFade
){
cameraFade
.
GetComponent
<
GUITexture
>().
texture
=
texture
;
//
cameraFade.GetComponent<GUITexture>().texture=texture;
}
}
...
...
@@ -6094,9 +6101,9 @@ public class iTween : MonoBehaviour{
//establish colorFade object:
cameraFade
=
new
GameObject
(
"iTween Camera Fade"
);
cameraFade
.
transform
.
position
=
new
Vector3
(.
5f
,.
5f
,
depth
);
cameraFade
.
AddComponent
<
GUITexture
>();
cameraFade
.
GetComponent
<
GUITexture
>().
texture
=
texture
;
cameraFade
.
GetComponent
<
GUITexture
>().
color
=
new
Color
(.
5f
,.
5f
,.
5f
,
0
);
//
cameraFade.AddComponent<GUITexture>();
//
cameraFade.GetComponent<GUITexture>().texture=texture;
//
cameraFade.GetComponent<GUITexture>().color = new Color(.5f,.5f,.5f,0);
return
cameraFade
;
}
}
...
...
@@ -6117,9 +6124,9 @@ public class iTween : MonoBehaviour{
//establish colorFade object:
cameraFade
=
new
GameObject
(
"iTween Camera Fade"
);
cameraFade
.
transform
.
position
=
new
Vector3
(.
5f
,.
5f
,
Defaults
.
cameraFadeDepth
);
cameraFade
.
AddComponent
<
GUITexture
>();
cameraFade
.
GetComponent
<
GUITexture
>().
texture
=
texture
;
cameraFade
.
GetComponent
<
GUITexture
>().
color
=
new
Color
(.
5f
,.
5f
,.
5f
,
0
);
//
cameraFade.AddComponent<GUITexture>();
//
cameraFade.GetComponent<GUITexture>().texture=texture;
//
cameraFade.GetComponent<GUITexture>().color = new Color(.5f,.5f,.5f,0);
return
cameraFade
;
}
}
...
...
@@ -6137,9 +6144,9 @@ public class iTween : MonoBehaviour{
//establish colorFade object:
cameraFade
=
new
GameObject
(
"iTween Camera Fade"
);
cameraFade
.
transform
.
position
=
new
Vector3
(.
5f
,.
5f
,
Defaults
.
cameraFadeDepth
);
cameraFade
.
AddComponent
<
GUITexture
>();
cameraFade
.
GetComponent
<
GUITexture
>().
texture
=
CameraTexture
(
Color
.
black
);
cameraFade
.
GetComponent
<
GUITexture
>().
color
=
new
Color
(.
5f
,.
5f
,.
5f
,
0
);
//
cameraFade.AddComponent<GUITexture>();
//
cameraFade.GetComponent<GUITexture>().texture=CameraTexture(Color.black);
//
cameraFade.GetComponent<GUITexture>().color = new Color(.5f,.5f,.5f,0);
return
cameraFade
;
}
}
...
...
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