Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-garin committed Mar 19, 2018
1 parent dc75953 commit c89ed0e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
10 changes: 10 additions & 0 deletions Assets/Scripts/PlacementArea/Fit.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Assets/Scripts/UI/BuildingManager/PopUpView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ public IPopUpController Controller
controller = value;
}
}

void OnDestroy ()
{
infoBtn.onClick.RemoveListener(controller.ShowInfo);
deleteBtn.onClick.RemoveListener(controller.DeleteObject);
}
}
}
10 changes: 9 additions & 1 deletion Assets/Scripts/UI/Craft/CraftMenuView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,20 @@ void Start()

public bool MenuIsOpen()
{
return this.gameObject.activeSelf;
return gameObject.activeSelf;
}

public override void OnOutsideClick()
{
controller.ClickMenu();
}

void OnDestroy()
{
craftButton.onClick.RemoveAllListeners();
building1x1Button.onClick.RemoveAllListeners();
building2x2Button.onClick.RemoveAllListeners();
building3x3Button.onClick.RemoveAllListeners();
}
}
}
1 change: 0 additions & 1 deletion Assets/Scripts/UI/IWindowView.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;

namespace UI
{
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
m_EditorVersion: 2017.2.0f3
m_EditorVersion: 2017.3.0f3

0 comments on commit c89ed0e

Please sign in to comment.