Remove unused code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user