Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Game_jam19
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erno Lokkila
Game_jam19
Commits
3e893fb8
Commit
3e893fb8
authored
6 years ago
by
Leevi Grönlund
Browse files
Options
Downloads
Patches
Plain Diff
Resources changes again
parent
a5cd597a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Assets/Scripts/BerryBush.cs
+19
-1
19 additions, 1 deletion
Assets/Scripts/BerryBush.cs
Assets/Scripts/Outcrop.cs
+5
-0
5 additions, 0 deletions
Assets/Scripts/Outcrop.cs
Assets/Scripts/Quarry.cs
+6
-0
6 additions, 0 deletions
Assets/Scripts/Quarry.cs
with
30 additions
and
1 deletion
Assets/Scripts/BerryBush.cs
+
19
−
1
View file @
3e893fb8
...
@@ -5,15 +5,33 @@ using UnityEngine;
...
@@ -5,15 +5,33 @@ using UnityEngine;
public
class
BerryBush
:
Resource
public
class
BerryBush
:
Resource
{
{
private
float
growthspeed
;
public
override
void
checkExistence
()
public
override
void
checkExistence
()
{
{
}
}
public
override
void
refreshSprite
()
{
}
// Start is called before the first frame update
// Start is called before the first frame update
void
Start
()
void
Start
()
{
{
resources
=
Random
.
Range
(
50
,
200
);
growthspeed
=
1
;
StartCoroutine
(
"Grow"
);
}
IEnumerator
Grow
()
{
while
(
resources
<
500
)
{
resources
++;
yield
return
new
WaitForSeconds
(
growthspeed
);
}
}
}
// Update is called once per frame
// Update is called once per frame
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/Outcrop.cs
+
5
−
0
View file @
3e893fb8
...
@@ -12,6 +12,11 @@ public class Outcrop : Resource
...
@@ -12,6 +12,11 @@ public class Outcrop : Resource
}
}
}
}
public
override
void
refreshSprite
()
{
}
// Start is called before the first frame update
// Start is called before the first frame update
void
Start
()
void
Start
()
{
{
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/Quarry.cs
+
6
−
0
View file @
3e893fb8
...
@@ -12,6 +12,12 @@ public class Quarry : Resource
...
@@ -12,6 +12,12 @@ public class Quarry : Resource
Destroy
(
gameObject
);
Destroy
(
gameObject
);
}
}
}
}
public
override
void
refreshSprite
()
{
}
// Start is called before the first frame update
// Start is called before the first frame update
void
Start
()
void
Start
()
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment