Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Suck It
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
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
GameDevWeek
W
Wintersemester 2018-2019
Unity
Suck It
Commits
2956377e
Commit
2956377e
authored
Mar 30, 2019
by
Sebastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
8a90b831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Assets/_Game/Scripts/Elements/InteractionObject.cs
Assets/_Game/Scripts/Elements/InteractionObject.cs
+2
-2
No files found.
Assets/_Game/Scripts/Elements/InteractionObject.cs
View file @
2956377e
...
...
@@ -5,7 +5,7 @@ namespace _Game.Scripts.Elements
{
public
class
InteractionObject
:
MonoBehaviour
{
[
SerializeField
]
private
float
_
cooldown
;
[
SerializeField
]
private
float
cooldown
;
private
bool
_isReady
=
true
;
private
SpriteRenderer
_spriteRenderer
;
private
Color
_defaultColor
;
...
...
@@ -23,7 +23,7 @@ namespace _Game.Scripts.Elements
print
(
"Infused "
+
this
.
gameObject
.
tag
);
_isReady
=
false
;
_spriteRenderer
.
color
=
_idleColor
;
Invoke
(
"SetReady"
,
_
cooldown
);
Invoke
(
"SetReady"
,
cooldown
);
}
private
void
SetReady
()
...
...
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