{"id":41,"date":"2013-03-19T21:08:18","date_gmt":"2013-03-19T21:08:18","guid":{"rendered":"http:\/\/lotecsoftware.com\/unity\/blog\/?page_id=41"},"modified":"2013-03-19T21:08:18","modified_gmt":"2013-03-19T21:08:18","slug":"switchtriggertarget","status":"publish","type":"page","link":"http:\/\/lotecsoftware.com\/unity\/blog\/?page_id=41","title":{"rendered":"SwitchTriggerTarget"},"content":{"rendered":"\n<pre class=\"lang:c# decode:true \" >\/* This should have been an interface, but Unity don't\r\n * allow interface objects as public references in the gui.\r\n * *\/\r\nusing UnityEngine;\r\n\r\npublic abstract class SwitchTriggerTarget : MonoBehaviour {\r\n\tpublic abstract void OnTriggerSwitch(bool on);\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/* This should have been an interface, but Unity don&#8217;t * allow interface objects as public references in the gui. * *\/ using UnityEngine; public abstract class SwitchTriggerTarget : MonoBehaviour { public abstract void OnTriggerSwitch(bool on); }<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=\/wp\/v2\/pages\/41"}],"collection":[{"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":0,"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=\/wp\/v2\/pages\/41\/revisions"}],"wp:attachment":[{"href":"http:\/\/lotecsoftware.com\/unity\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}