Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
50afa1b6
Commit
50afa1b6
authored
Feb 20, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
피격시 빨개짐
parent
bda25718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
LifeStoneManager.cs
...Scripts/UI/In-game UI/LifeStoneScript/LifeStoneManager.cs
+14
-0
No files found.
Assets/Scripts/UI/In-game UI/LifeStoneScript/LifeStoneManager.cs
View file @
50afa1b6
...
@@ -430,7 +430,21 @@ public class LifeStoneManager : Singleton<LifeStoneManager> {
...
@@ -430,7 +430,21 @@ public class LifeStoneManager : Singleton<LifeStoneManager> {
}
}
}
}
StartCoroutine
(
DestroyInPhase
(
candArray
));
StartCoroutine
(
DestroyInPhase
(
candArray
));
StartCoroutine
(
HitRedEffect
(
num
));
}
}
IEnumerator
HitRedEffect
(
int
damage
)
{
float
startTime
=
Time
.
time
,
endTime
=
startTime
+
0.3f
;
SpriteRenderer
sprt
=
GameObject
.
Find
(
"Player"
).
GetComponent
<
SpriteRenderer
>();
sprt
.
color
=
new
Color
(
1
,
0
,
0
);
while
(
Time
.
time
<
endTime
)
{
sprt
.
color
=
new
Color
(
1
,
1
-
(
endTime
-
Time
.
time
)
/
(
endTime
-
startTime
),
1
-
(
endTime
-
Time
.
time
)
/
(
endTime
-
startTime
));
yield
return
null
;
}
sprt
.
color
=
new
Color
(
1
,
1
,
1
);
}
/// <summary>
/// <summary>
/// make term among lifestone destroy
/// make term among lifestone destroy
...
...
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