Commit 9b8b21ac authored by Cody A Burchett's avatar Cody A Burchett

removed sprite renderer in base

parent d81fc2c5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment