소스 검색

Added setup function to clicl handler

James Peret 2 년 전
부모
커밋
b4b9ab6c88
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Runtime/InteractionHandler/ClickHandler.cs

+ 6 - 0
Runtime/InteractionHandler/ClickHandler.cs

@@ -17,6 +17,12 @@ namespace KairoEngine.UI.InteractionHandler
             if(receiver != null) receiver.OnClick(title);
             //else Debug.LogError("ClickHandler has no receiver!", this.gameObject);
         }
+
+        public void Setup(string title, IClickHandler receiver)
+        {
+            this.title = title;
+            this.receiver = receiver;
+        }
     }
 }