fix timing menu bug
This commit is contained in:
1 parent
7dc0a04856
commit
0c6dce0f1b
4 files changed
+29
-5
No files matched your search
@@ -13,6 +13,9 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
|
||||
MenuUi menuUi;
|
||||
|
||||
[SerializeField]
|
||||
ShipUi shipUi;
|
||||
|
||||
SpaceRaceInput input;
|
||||
bool visible = false;
|
||||
|
||||
@@ -47,6 +50,7 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
|
||||
// take control off the ship
|
||||
timingDoc.enabled = false;
|
||||
shipUi.enabled = false;
|
||||
shipControls.enabled = false;
|
||||
}
|
||||
|
||||
@@ -57,6 +61,7 @@ public class MenuControls : MonoBehaviour, SpaceRaceInput.IMenuActions {
|
||||
|
||||
// resume control of the ship
|
||||
timingDoc.enabled = true;
|
||||
shipUi.enabled = true;
|
||||
shipControls.enabled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user