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
5f639056
Commit
5f639056
authored
Aug 30, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment out old particles
parent
c7864393
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
98 deletions
+98
-98
Assets/ArtSystem/mouseParticle/mouseParticle.cs
Assets/ArtSystem/mouseParticle/mouseParticle.cs
+10
-10
Assets/old/UiverseAssests/art_plugin/MagicEffectsLightningVol01/ocgcore/partical_scaler.cs
...gin/MagicEffectsLightningVol01/ocgcore/partical_scaler.cs
+6
-6
Assets/old/UiverseAssests/art_plugin/RFX_Resources/Scripts/ParticleScaler.cs
...ssests/art_plugin/RFX_Resources/Scripts/ParticleScaler.cs
+26
-26
Assets/old/UiverseAssests/art_plugin/RFX_Resources/ocgcore/fusion_tweener.cs
...ssests/art_plugin/RFX_Resources/ocgcore/fusion_tweener.cs
+30
-30
Assets/old/UiverseAssests/art_plugin/thunder/RAYOS/Sources/LightningBolt.cs
...Assests/art_plugin/thunder/RAYOS/Sources/LightningBolt.cs
+26
-26
No files found.
Assets/ArtSystem/mouseParticle/mouseParticle.cs
View file @
5f639056
...
@@ -3,8 +3,8 @@ using System.Collections;
...
@@ -3,8 +3,8 @@ using System.Collections;
public
class
mouseParticle
:
MonoBehaviour
{
public
class
mouseParticle
:
MonoBehaviour
{
public
Camera
camera
;
public
Camera
camera
;
public
EllipsoidParticleEmitter
e1
;
//
public EllipsoidParticleEmitter e1;
public
EllipsoidParticleEmitter
e2
;
//
public EllipsoidParticleEmitter e2;
public
Transform
trans
;
public
Transform
trans
;
// Use this for initialization
// Use this for initialization
void
Start
()
{
void
Start
()
{
...
@@ -28,17 +28,17 @@ public class mouseParticle : MonoBehaviour {
...
@@ -28,17 +28,17 @@ public class mouseParticle : MonoBehaviour {
{
{
time
=
0.49f
;
time
=
0.49f
;
}
}
e1
.
maxEmission
=
(
0.5f
-
time
)
*
60f
;
//
e1.maxEmission = (0.5f - time) * 60f;
e1
.
minEmission
=
(
0.5f
-
time
)
*
60f
;
//
e1.minEmission = (0.5f - time) * 60f;
e2
.
maxEmission
=
e1
.
maxEmission
/
3f
;
//
e2.maxEmission = e1.maxEmission / 3f;
e2
.
minEmission
=
e1
.
minEmission
/
3f
;
//
e2.minEmission = e1.minEmission / 3f;
e1
.
emit
=
true
;
//
e1.emit = true;
e2
.
emit
=
true
;
//
e2.emit = true;
}
}
else
else
{
{
e1
.
emit
=
false
;
//
e1.emit = false;
e2
.
emit
=
false
;
//
e2.emit = false;
}
}
}
}
}
}
Assets/old/UiverseAssests/art_plugin/MagicEffectsLightningVol01/ocgcore/partical_scaler.cs
View file @
5f639056
...
@@ -14,12 +14,12 @@ public class partical_scaler : MonoBehaviour {
...
@@ -14,12 +14,12 @@ public class partical_scaler : MonoBehaviour {
public
void
eltersGo
()
public
void
eltersGo
()
{
{
var
elters
=
gameObject
.
GetComponentsInChildren
<
EllipsoidParticleEmitter
>(
true
);
//
var elters = gameObject.GetComponentsInChildren<EllipsoidParticleEmitter>(true);
foreach
(
var
p
in
elters
)
//
foreach (var p in elters)
{
//
{
p
.
maxSize
*=
scale
;
//
p.maxSize *= scale;
p
.
minSize
*=
scale
;
//
p.minSize *= scale;
}
//
}
}
}
// Update is called once per frame
// Update is called once per frame
...
...
Assets/old/UiverseAssests/art_plugin/RFX_Resources/Scripts/ParticleScaler.cs
View file @
5f639056
...
@@ -95,34 +95,34 @@ public class ParticleScaler : MonoBehaviour
...
@@ -95,34 +95,34 @@ public class ParticleScaler : MonoBehaviour
{
{
#if UNITY_EDITOR
#if UNITY_EDITOR
//get all emitters we need to do scaling on
//get all emitters we need to do scaling on
ParticleEmitter
[]
emitters
=
GetComponentsInChildren
<
ParticleEmitter
>();
//
ParticleEmitter[] emitters = GetComponentsInChildren<ParticleEmitter>();
//
//get all animators we need to do scaling on
//
//
get all animators we need to do scaling on
ParticleAnimator
[]
animators
=
GetComponentsInChildren
<
ParticleAnimator
>();
//
ParticleAnimator[] animators = GetComponentsInChildren<ParticleAnimator>();
//apply scaling to emitters
//apply scaling to emitters
foreach
(
ParticleEmitter
emitter
in
emitters
)
//
foreach (ParticleEmitter emitter in emitters)
{
//
{
emitter
.
minSize
*=
scaleFactor
;
//
emitter.minSize *= scaleFactor;
emitter
.
maxSize
*=
scaleFactor
;
//
emitter.maxSize *= scaleFactor;
emitter
.
worldVelocity
*=
scaleFactor
;
//
emitter.worldVelocity *= scaleFactor;
emitter
.
localVelocity
*=
scaleFactor
;
//
emitter.localVelocity *= scaleFactor;
emitter
.
rndVelocity
*=
scaleFactor
;
//
emitter.rndVelocity *= scaleFactor;
//
//some variables cannot be accessed through regular script, we will acces them through a serialized object
//
//some variables cannot be accessed through regular script, we will acces them through a serialized object
SerializedObject
so
=
new
SerializedObject
(
emitter
);
//
SerializedObject so = new SerializedObject(emitter);
//
so
.
FindProperty
(
"m_Ellipsoid"
).
vector3Value
*=
scaleFactor
;
//
so.FindProperty("m_Ellipsoid").vector3Value *= scaleFactor;
so
.
FindProperty
(
"tangentVelocity"
).
vector3Value
*=
scaleFactor
;
//
so.FindProperty("tangentVelocity").vector3Value *= scaleFactor;
so
.
ApplyModifiedProperties
();
//
so.ApplyModifiedProperties();
}
//
}
//
//apply scaling to animators
//
//
apply scaling to animators
foreach
(
ParticleAnimator
animator
in
animators
)
//
foreach (ParticleAnimator animator in animators)
{
//
{
animator
.
force
*=
scaleFactor
;
//
animator.force *= scaleFactor;
animator
.
rndForce
*=
scaleFactor
;
//
animator.rndForce *= scaleFactor;
}
//
}
#endif
#endif
}
}
...
...
Assets/old/UiverseAssests/art_plugin/RFX_Resources/ocgcore/fusion_tweener.cs
View file @
5f639056
...
@@ -19,21 +19,21 @@ public class fusion_tweener : MonoBehaviour {
...
@@ -19,21 +19,21 @@ public class fusion_tweener : MonoBehaviour {
system
.
gravityModifier
*=
scaleFactor
;
system
.
gravityModifier
*=
scaleFactor
;
}
}
//apply scaling to emitters
//apply scaling to emitters
foreach
(
ParticleEmitter
emitter
in
emitters
)
//
foreach (ParticleEmitter emitter in emitters)
{
//
{
emitter
.
minSize
*=
scaleFactor
;
//
emitter.minSize *= scaleFactor;
emitter
.
maxSize
*=
scaleFactor
;
//
emitter.maxSize *= scaleFactor;
emitter
.
worldVelocity
*=
scaleFactor
;
//
emitter.worldVelocity *= scaleFactor;
emitter
.
localVelocity
*=
scaleFactor
;
//
emitter.localVelocity *= scaleFactor;
emitter
.
rndVelocity
*=
scaleFactor
;
//
emitter.rndVelocity *= scaleFactor;
}
//
}
//
//apply scaling to animators
//
//
apply scaling to animators
foreach
(
ParticleAnimator
animator
in
animators
)
//
foreach (ParticleAnimator animator in animators)
{
//
{
animator
.
force
*=
scaleFactor
;
//
animator.force *= scaleFactor;
animator
.
rndForce
*=
scaleFactor
;
//
animator.rndForce *= scaleFactor;
}
//
}
}
}
int
step
=
1
;
int
step
=
1
;
float
scaleFactor
=
0.1f
;
float
scaleFactor
=
0.1f
;
...
@@ -82,20 +82,20 @@ public class fusion_tweener : MonoBehaviour {
...
@@ -82,20 +82,20 @@ public class fusion_tweener : MonoBehaviour {
system
.
gravityModifier
*=
scaleFactor
;
system
.
gravityModifier
*=
scaleFactor
;
}
}
//apply scaling to emitters
//apply scaling to emitters
foreach
(
ParticleEmitter
emitter
in
emitters
)
//
foreach (ParticleEmitter emitter in emitters)
{
//
{
emitter
.
minSize
*=
scaleFactor
;
//
emitter.minSize *= scaleFactor;
emitter
.
maxSize
*=
scaleFactor
;
//
emitter.maxSize *= scaleFactor;
emitter
.
worldVelocity
*=
scaleFactor
;
//
emitter.worldVelocity *= scaleFactor;
emitter
.
localVelocity
*=
scaleFactor
;
//
emitter.localVelocity *= scaleFactor;
emitter
.
rndVelocity
*=
scaleFactor
;
//
emitter.rndVelocity *= scaleFactor;
}
//
}
//
//apply scaling to animators
//
//
apply scaling to animators
foreach
(
ParticleAnimator
animator
in
animators
)
//
foreach (ParticleAnimator animator in animators)
{
//
{
animator
.
force
*=
scaleFactor
;
//
animator.force *= scaleFactor;
animator
.
rndForce
*=
scaleFactor
;
//
animator.rndForce *= scaleFactor;
}
//
}
}
}
}
}
Assets/old/UiverseAssests/art_plugin/thunder/RAYOS/Sources/LightningBolt.cs
View file @
5f639056
...
@@ -17,15 +17,15 @@ public class LightningBolt : MonoBehaviour
...
@@ -17,15 +17,15 @@ public class LightningBolt : MonoBehaviour
Perlin
noise
;
Perlin
noise
;
float
oneOverZigs
;
float
oneOverZigs
;
private
Particle
[]
particles
;
//
private Particle[] particles;
void
Start
()
void
Start
()
{
{
oneOverZigs
=
1f
/
(
float
)
zigs
;
oneOverZigs
=
1f
/
(
float
)
zigs
;
GetComponent
<
ParticleEmitter
>().
emit
=
false
;
//
GetComponent<ParticleEmitter>().emit = false;
GetComponent
<
ParticleEmitter
>().
Emit
(
zigs
);
//
GetComponent<ParticleEmitter>().Emit(zigs);
particles
=
GetComponent
<
ParticleEmitter
>().
particles
;
//
particles = GetComponent<ParticleEmitter>().particles;
}
}
void
Update
()
void
Update
()
...
@@ -37,27 +37,27 @@ public class LightningBolt : MonoBehaviour
...
@@ -37,27 +37,27 @@ public class LightningBolt : MonoBehaviour
float
timey
=
Time
.
time
*
speed
*
1.21688f
;
float
timey
=
Time
.
time
*
speed
*
1.21688f
;
float
timez
=
Time
.
time
*
speed
*
2.5564f
;
float
timez
=
Time
.
time
*
speed
*
2.5564f
;
for
(
int
i
=
0
;
i
<
particles
.
Length
;
i
++)
//
for (int i=0; i < particles.Length; i++)
{
//
{
Vector3
position
=
Vector3
.
Lerp
(
transform
.
position
,
target
.
position
,
oneOverZigs
*
(
float
)
i
);
//
Vector3 position = Vector3.Lerp(transform.position, target.position, oneOverZigs * (float)i);
Vector3
offset
=
new
Vector3
(
noise
.
Noise
(
timex
+
position
.
x
,
timex
+
position
.
y
,
timex
+
position
.
z
),
//
Vector3 offset = new Vector3(noise.Noise(timex + position.x, timex + position.y, timex + position.z),
noise
.
Noise
(
timey
+
position
.
x
,
timey
+
position
.
y
,
timey
+
position
.
z
),
//
noise.Noise(timey + position.x, timey + position.y, timey + position.z),
noise
.
Noise
(
timez
+
position
.
x
,
timez
+
position
.
y
,
timez
+
position
.
z
));
//
noise.Noise(timez + position.x, timez + position.y, timez + position.z));
position
+=
(
offset
*
scale
*
((
float
)
i
*
oneOverZigs
));
//
position += (offset * scale * ((float)i * oneOverZigs));
//
particles
[
i
].
position
=
position
;
//
particles[i].position = position;
particles
[
i
].
color
=
Color
.
white
;
//
particles[i].color = Color.white;
particles
[
i
].
energy
=
1f
;
//
particles[i].energy = 1f;
}
//
}
//
GetComponent
<
ParticleEmitter
>().
particles
=
particles
;
//
GetComponent<ParticleEmitter>().particles = particles;
//
if
(
GetComponent
<
ParticleEmitter
>().
particleCount
>=
2
)
//
if (GetComponent<ParticleEmitter>().particleCount >= 2)
{
//
{
if
(
startLight
)
//
if (startLight)
startLight
.
transform
.
position
=
particles
[
0
].
position
;
//
startLight.transform.position = particles[0].position;
if
(
endLight
)
//
if (endLight)
endLight
.
transform
.
position
=
particles
[
particles
.
Length
-
1
].
position
;
//
endLight.transform.position = particles[particles.Length - 1].position;
}
//
}
}
}
}
}
\ No newline at end of file
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