Remove unused code
This commit is contained in:
@@ -12,11 +12,9 @@ public class FishController : MonoBehaviour
|
|||||||
public Vector3 drag;
|
public Vector3 drag;
|
||||||
|
|
||||||
CharacterController controller;
|
CharacterController controller;
|
||||||
Transform t;
|
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
t = transform;
|
|
||||||
controller = GetComponent<CharacterController>();
|
controller = GetComponent<CharacterController>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,7 +35,6 @@ public class FishController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
velocity.x = moveX * speed;
|
velocity.x = moveX * speed;
|
||||||
// velocity.z = moveZ * speed;
|
|
||||||
velocity.y += moveGravity;
|
velocity.y += moveGravity;
|
||||||
|
|
||||||
transform.Rotate(0, moveZ, 0);
|
transform.Rotate(0, moveZ, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user