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
41999071
Commit
41999071
authored
Aug 30, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mouseParticle
parent
fdc64a49
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2935 additions
and
593 deletions
+2935
-593
Assets/ArtSystem/mouseParticle/UIparticle.prefab
Assets/ArtSystem/mouseParticle/UIparticle.prefab
+2926
-572
Assets/ArtSystem/mouseParticle/mouseParticle.cs
Assets/ArtSystem/mouseParticle/mouseParticle.cs
+9
-21
No files found.
Assets/ArtSystem/mouseParticle/UIparticle.prefab
View file @
41999071
This diff is collapsed.
Click to expand it.
Assets/ArtSystem/mouseParticle/mouseParticle.cs
View file @
41999071
...
...
@@ -3,8 +3,8 @@ using System.Collections;
public
class
mouseParticle
:
MonoBehaviour
{
public
Camera
camera
;
// public EllipsoidParticleEmitter
e1;
// public EllipsoidParticleEmitter
e2;
public
ParticleSystem
e1
;
public
ParticleSystem
e2
;
public
Transform
trans
;
// Use this for initialization
void
Start
()
{
...
...
@@ -17,28 +17,16 @@ public class mouseParticle : MonoBehaviour {
screenPoint
.
z
=
10
;
trans
.
position
=
camera
.
ScreenToWorldPoint
(
screenPoint
);
if
(
Input
.
GetMouseButton
(
0
))
if
(
Input
.
GetMouseButton
Down
(
0
))
{
if
(
Input
.
GetMouseButtonDown
(
0
))
{
time
=
0
;
}
time
+=
Time
.
deltaTime
;
if
(
time
>
0.49
)
{
time
=
0.49f
;
}
// e1.maxEmission = (0.5f - time) * 60f;
// e1.minEmission = (0.5f - time) * 60f;
// e2.maxEmission = e1.maxEmission / 3f;
// e2.minEmission = e1.minEmission / 3f;
// e1.emit = true;
// e2.emit = true;
e1
.
Play
();
e2
.
Play
();
}
else
if
(
Input
.
GetMouseButtonUp
(
0
))
{
// e1.emit = false
;
// e2.emit = false
;
e1
.
Stop
()
;
e2
.
Stop
()
;
}
}
}
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