From e82ed0b65e574f983c2942cb1689d3eb519cb928 Mon Sep 17 00:00:00 2001 From: James Hodgson Date: Tue, 12 Apr 2022 14:49:07 +0100 Subject: [PATCH] Remove unused code --- Assets/Scripts/FishController.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Assets/Scripts/FishController.cs b/Assets/Scripts/FishController.cs index 0c1d5f7..e866661 100644 --- a/Assets/Scripts/FishController.cs +++ b/Assets/Scripts/FishController.cs @@ -12,11 +12,9 @@ public class FishController : MonoBehaviour public Vector3 drag; CharacterController controller; - Transform t; void Start() { - t = transform; controller = GetComponent(); } @@ -37,7 +35,6 @@ public class FishController : MonoBehaviour } velocity.x = moveX * speed; - // velocity.z = moveZ * speed; velocity.y += moveGravity; transform.Rotate(0, moveZ, 0);