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
B
Birb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
gadig
Birb
Commits
9b8b21ac
Commit
9b8b21ac
authored
Apr 06, 2017
by
Cody A Burchett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed sprite renderer in base
parent
d81fc2c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
Assets/Scripts/Enemy/BaseEnemy.cs
Assets/Scripts/Enemy/BaseEnemy.cs
+0
-2
No files found.
Assets/Scripts/Enemy/BaseEnemy.cs
View file @
9b8b21ac
...
...
@@ -9,7 +9,6 @@ public class BaseEnemy : MonoBehaviour {
public
float
maxMoveDistance
=
5f
;
protected
float
moveDistanceLeft
;
Rigidbody2D
body
;
protected
SpriteRenderer
sr
;
protected
float
startMoveTime
;
public
Transform
rightCollisionPos
;
...
...
@@ -19,7 +18,6 @@ public class BaseEnemy : MonoBehaviour {
protected
virtual
void
Start
()
{
body
=
GetComponent
<
Rigidbody2D
>();
sr
=
GetComponent
<
SpriteRenderer
>();
startMoveTime
=
Time
.
time
+
.
4f
;
moveDistanceLeft
=
maxMoveDistance
;
}
...
...
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