Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GalaxySmash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hà Trung (NEGAXY)
GalaxySmash
Commits
b291ab66
Commit
b291ab66
authored
Dec 13, 2021
by
Hà Trung (NEGAXY)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TrungHM: Fix fx coin
parent
e463cf2d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
CoinCollection_GuiFx.cs
Assets/Scripts/CoinCollection_GuiFx.cs
+2
-2
HomeScreen.cs
Assets/Scripts/UI/HomeScreen.cs
+1
-1
SmashModeScreen.cs
Assets/Scripts/UI/SmashModeScreen.cs
+1
-1
No files found.
Assets/Scripts/CoinCollection_GuiFx.cs
View file @
b291ab66
...
...
@@ -6,7 +6,7 @@ using DG.Tweening;
public
class
CoinCollection_GuiFx
:
MonoBehaviour
{
public
List
<
RectTransform
>
elements
=
new
List
<
RectTransform
>();
public
Vector3
target
{
set
;
get
;
}
public
Transform
target
{
set
;
get
;
}
private
void
OnEnable
()
{
StartCoroutine
(
ie_enable
());
...
...
@@ -32,7 +32,7 @@ public class CoinCollection_GuiFx : MonoBehaviour
foreach
(
RectTransform
rect
in
elements
)
{
yield
return
new
WaitForSeconds
(
Random
.
Range
(
0.01f
,
0.1f
));
rect
.
DOMove
(
target
,
0.7f
).
SetEase
(
Ease
.
InQuad
).
OnComplete
(()
=>
rect
.
DOMove
(
target
.
transform
.
position
,
0.7f
).
SetEase
(
Ease
.
InQuad
).
OnComplete
(()
=>
{
rect
.
gameObject
.
SetActive
(
false
);
//IndieGame.Manager.EffectManager.Instance.SpawnCollectionSound(transform.position);
...
...
Assets/Scripts/UI/HomeScreen.cs
View file @
b291ab66
...
...
@@ -85,7 +85,7 @@ public class HomeScreen : MonoBehaviour
}
public
void
ShowCoinFx
()
{
guiFx
.
target
=
icon
.
transform
.
position
;
guiFx
.
target
=
icon
.
transform
;
guiFx
.
gameObject
.
SetActive
(
true
);
}
public
void
OnClick_RemoveAds
()
...
...
Assets/Scripts/UI/SmashModeScreen.cs
View file @
b291ab66
...
...
@@ -54,7 +54,7 @@ public class SmashModeScreen : MonoBehaviour
}
public
void
ShowCoinFx
()
{
guiFx
.
target
=
icon
.
transform
.
position
;
guiFx
.
target
=
icon
.
transform
;
guiFx
.
gameObject
.
SetActive
(
true
);
}
public
void
OnReloadButton
()
...
...
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