Ejemplo n.º 1
0
 public void Start()
 {
     getJsonHandlerObject();
     updateComponentDataAction = new UnityAction <ComponentBase>(updateComponentData);
     updateComponentDataEvent  = new UpdateDataEvent();
     updateComponentDataEvent.AddListener(updateComponentDataAction);
     if (data.type == "fix")
     {
         fixedComponent = true;
     }
     else
     {
         fixedComponent = false;
     }
     drag = true;
 }
Ejemplo n.º 2
0
    public void Start()
    {
        getBoardDataHandlerObject();
        updateJsonAction = new UnityAction <ComponentBase>(updateJsonData);
        updateJsonEvent  = new UpdateDataEvent();
        updateJsonEvent.AddListener(updateJsonAction);

        // resetValueAction = new UnityAction<JObject>(resetValue);
        // resetValueEvent = new UpdateJsonEvent();
        // resetValueEvent.AddListener(resetValueAction);

        // disconnectLeftAction = new UnityAction<JObject>(disconnectLeft);
        // disconnectLeftEvent = new UpdateJsonEvent();
        // disconnectLeftEvent.AddListener(disconnectLeftAction);

        // disconnectRightAction = new UnityAction<JObject>(disconnectRight);
        // disconnectRightEvent = new UpdateJsonEvent();
        // disconnectRightEvent.AddListener(disconnectRightAction);
    }