server init
This commit is contained in:
1 parent
9e217e1a92
commit
b54c003244
14 files changed
+213
-6
No files matched your search
@@ -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}");
|
||||
|
||||
|
||||
Reference in new issue
Block a user