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; }
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); }