Advertisement
Guest User

Untitled

a guest
Jun 29th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1.     void Awake ()
  2.     {
  3.         saveDirPath = Application.dataPath + "/Levels/";
  4.        
  5.         if (buttonSave != null) {
  6.             UIEventListener.Get (buttonSave.gameObject).onClick += OnButtonSave_Click;
  7.         }
  8.         if (buttonLoad != null) {
  9.             UIEventListener.Get (buttonLoad.gameObject).onClick += OnButtonLoad_Click;
  10.         }
  11.         if (buttonInputDialogOk != null) {
  12.             UIEventListener.Get (buttonInputDialogOk.gameObject).onClick += OnButtonInputDialogOk_Click;
  13.         }
  14.         if (buttonInputDialogCancel != null) {
  15.             UIEventListener.Get (buttonInputDialogCancel.gameObject).onClick += OnButtonInputDialogCancel_Click;
  16.         }
  17.         if (buttonselectLevelDialogClose != null) {
  18.             UIEventListener.Get (buttonselectLevelDialogClose.gameObject).onClick += OnButtonselectLevelDialogClose_Click;
  19.         }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement