Remove unused code

This commit is contained in:
James Hodgson
2022-04-12 14:49:07 +01:00
parent 2abf9c062c
commit e82ed0b65e

View File

@@ -12,11 +12,9 @@ public class FishController : MonoBehaviour
public Vector3 drag;
CharacterController controller;
Transform t;
void Start()
{
t = transform;
controller = GetComponent<CharacterController>();
}
@@ -37,7 +35,6 @@ public class FishController : MonoBehaviour
}
velocity.x = moveX * speed;
// velocity.z = moveZ * speed;
velocity.y += moveGravity;
transform.Rotate(0, moveZ, 0);