crosshair wip
This commit is contained in:
1 parent
c611014b88
commit
42fcc9fe1b
35 files changed
+1328
-1688
No files matched your search
@@ -11,10 +11,10 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
[SerializeField]
|
||||
ShipControls shipControls;
|
||||
|
||||
MenuUi menuUi;
|
||||
MenuUI menuUi;
|
||||
|
||||
[SerializeField]
|
||||
ShipUi shipUi;
|
||||
TimingUI timingUi;
|
||||
|
||||
SpaceRaceInput input;
|
||||
bool visible = false;
|
||||
@@ -28,7 +28,7 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
}
|
||||
input.menu.Enable();
|
||||
|
||||
menuUi = GetComponent<MenuUi>();
|
||||
menuUi = GetComponent<MenuUI>();
|
||||
if (!menuUi) {
|
||||
Debug.LogError("No MenuUI");
|
||||
return;
|
||||
@@ -50,7 +50,7 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
|
||||
// take control off the ship
|
||||
timingDoc.enabled = false;
|
||||
shipUi.enabled = false;
|
||||
timingUi.enabled = false;
|
||||
shipControls.enabled = false;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
|
||||
// resume control of the ship
|
||||
timingDoc.enabled = true;
|
||||
shipUi.enabled = true;
|
||||
timingUi.enabled = true;
|
||||
shipControls.enabled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user