Commit 290b428f by Philipp Adolf

Remove unnecessary field

parent c7fe059b
...@@ -36,11 +36,9 @@ public class PlayerControl : MonoBehaviour ...@@ -36,11 +36,9 @@ public class PlayerControl : MonoBehaviour
public int playerNumber = 1; //gibt an, ob es sich um player one, player two, etc. handelt. sollte nicht 0 sein; public int playerNumber = 1; //gibt an, ob es sich um player one, player two, etc. handelt. sollte nicht 0 sein;
KeyCode goRightKeyCode, goLeftKeyCode, jumpKeyCode, dashKeyCode, shootKeyCode; KeyCode goRightKeyCode, goLeftKeyCode, jumpKeyCode, dashKeyCode, shootKeyCode;
private Rigidbody2D rigidbody;
void Start() void Start()
{ {
rigidbody = GetComponent<Rigidbody2D>();
_controller = GetComponent<CharacterController2D>(); _controller = GetComponent<CharacterController2D>();
_controller.onControllerCollidedEvent += onControllerCollider; _controller.onControllerCollidedEvent += onControllerCollider;
......
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