Exemplo n.º 1
0
 void OnDestroy()
 {
     UnityBridgeManager.Unwatch(
         this.system.GetEventName(this.system.listEventTemplate),
         transform,
         "OnData"
         );
 }
Exemplo n.º 2
0
 void Start()
 {
     UnityBridgeManager.Watch(
         this.system.GetEventName(this.system.detailEventTemplate, transform.name),
         transform,
         "OnData"
         );
 }
Exemplo n.º 3
0
 void Start()
 {
     itemTree = new PointOctree <ItemData>(octreeInitialNodeSize, Camera.main.transform.position, 1);
     UnityBridgeManager.Watch(
         this.system.GetEventName(this.system.listEventTemplate),
         transform,
         "OnData"
         );
 }
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            UnityBridgeManager script = (UnityBridgeManager)target;

            if (GUILayout.Button("mock Ready event"))
            {
                script.JsToUnity("Ready");
            }
        }