Skip to content
Snippets Groups Projects
Commit 13ecc5cd authored by John Schihada's avatar John Schihada
Browse files

Fixed UI from demo-video

parent ce51dea2
No related branches found
No related tags found
No related merge requests found
......@@ -44724,7 +44724,12 @@ PrefabInstance:
- target: {fileID: 8878469633115299378, guid: c1d50ceff6c06de40b71063574eba754,
type: 3}
propertyPath: m_Enabled
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8878469633115299378, guid: c1d50ceff6c06de40b71063574eba754,
type: 3}
propertyPath: m_SortingOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8878469633115299383, guid: c1d50ceff6c06de40b71063574eba754,
type: 3}
......@@ -44786,6 +44791,11 @@ PrefabInstance:
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8878469633280048826, guid: c1d50ceff6c06de40b71063574eba754,
type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8878469633280048830, guid: c1d50ceff6c06de40b71063574eba754,
type: 3}
propertyPath: m_IsActive
......@@ -10,7 +10,7 @@ public class ToolModeSelector : MonoBehaviour
private Button[] Buttons;
private HideUI UIManager;
private Canvas ParentCanvas;
private bool Showing = false;
private bool Showing = true;
// Start is called before the first frame update
void Start()
......@@ -38,7 +38,6 @@ public void Select(int id)
{
ParentCanvas.enabled = true;
Showing = true;
Buttons[GadgetManager.activeGadget.id].transform.localScale /= 2;
CommunicationEvents.ToolModeChangedEvent.Invoke(id);
......@@ -51,7 +50,7 @@ IEnumerator HideRoutine()
{
yield return new WaitForSeconds(2);
//if (!Showing)
if (!Showing)
{
ParentCanvas.enabled = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment