Esempio n. 1
0
 private void InitUI()
 {
     studioPanel = GameObject.Find("/Canvas/StudioPanel").GetComponent <StudioPanel>();
     studioPanel.Init();
     studioPanel.OnItemBeginDrag = HandleUIItemBeginDrag;
     studioPanel.OnBuildClick    = PlaceWall;
     studioPanel.OnPlaceClick    = () =>
     {
         isOverUI = true;
         PlaceItem();
     };
     studioPanel.OnDeleteClick = () =>
     {
         isOverUI = true;
         DeleteItem();
     };
     studioPanel.OnRotateChange = RotateItem;
     studioPanel.OnResetClick   = () =>
     {
         isOverUI = true;
         camera.TriggerAnimation();
         studioPanel.SetResetButtonActive(false);
     };
     studioPanel.OnTypeClick = () =>
     {
         isOverUI = true;
     };
 }