server init

This commit is contained in:
ntr committed 2023-08-23 12:56:28 +10:00
1 parent 9e217e1a92
commit b54c003244
14 files changed
+213 -6

No files matched your search

+2 -4
View File
@@ -28,6 +28,8 @@ public class ShipControls : MonoBehaviour {
public PowerUnit powerUnit = new();
public float Speed => rigidBody.velocity.magnitude;
void Start() {
Cursor.lockState = CursorLockMode.Locked;
rigidBody = GetComponent<Rigidbody>();
@@ -160,10 +162,6 @@ public class ShipControls : MonoBehaviour {
timing.StartTimer();
}
public float Speed() {
return rigidBody.velocity.magnitude;
}
public void Damage(float amt, string src) {
Debug.Log($"Damage {amt} from {src}");