Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WidowmakerSimulator
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
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
15박보승
WidowmakerSimulator
Commits
eca0bf12
Commit
eca0bf12
authored
5 years ago
by
15박보승
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
스킬 쿨타임 UI 구현
parent
5be33402
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
385 additions
and
10 deletions
+385
-10
SampleScene.unity
Grapplers/Assets/Scenes/SampleScene.unity
+369
-10
IngameUIManager.cs
Grapplers/Assets/Scripts/IngameUIManager.cs
+15
-0
WeaponBehaviour.cs
Grapplers/Assets/Scripts/WeaponBehaviour.cs
+1
-0
No files found.
Grapplers/Assets/Scenes/SampleScene.unity
View file @
eca0bf12
This diff is collapsed.
Click to expand it.
Grapplers/Assets/Scripts/IngameUIManager.cs
View file @
eca0bf12
...
@@ -23,6 +23,11 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
...
@@ -23,6 +23,11 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
[
SerializeField
]
[
SerializeField
]
private
Image
weaponUI
;
private
Image
weaponUI
;
[
SerializeField
]
private
Slider
skillUI
;
[
SerializeField
]
private
Text
skillCooltimeText
;
public
void
UpdateTargetLockedUIs
(
Vector3
[]
pos
)
public
void
UpdateTargetLockedUIs
(
Vector3
[]
pos
)
{
{
int
tmp
,
i
=
0
;
int
tmp
,
i
=
0
;
...
@@ -92,4 +97,14 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
...
@@ -92,4 +97,14 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
break
;
break
;
}
}
}
}
public
void
UpdateSkillUI
(
float
remain
,
float
time
)
{
skillUI
.
value
=
1
-
remain
/
time
;
if
(
remain
<=
0
)
skillCooltimeText
.
text
=
""
;
else
skillCooltimeText
.
text
=
string
.
Format
(
"{0:F1}"
,
remain
);
}
}
}
This diff is collapsed.
Click to expand it.
Grapplers/Assets/Scripts/WeaponBehaviour.cs
View file @
eca0bf12
...
@@ -202,6 +202,7 @@ public class Knife : IWeapon
...
@@ -202,6 +202,7 @@ public class Knife : IWeapon
public
void
UpdateWeapon
()
public
void
UpdateWeapon
()
{
{
skillTimer
-=
Time
.
deltaTime
;
skillTimer
-=
Time
.
deltaTime
;
IngameUIManager
.
inst
.
UpdateSkillUI
(
skillTimer
,
skillTimeInterval
);
}
}
private
IEnumerator
SkillRoutine
()
private
IEnumerator
SkillRoutine
()
...
...
This diff is collapsed.
Click to expand it.
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