private async void SetConfiguration(short ownerId, short repositoryId) { string owner = await NetworkedStringManager.GetString(ownerId); string repository = await NetworkedStringManager.GetString(repositoryId); visualizer.Owner = owner; visualizer.Repository = repository; visualizer.UpdateView(); }
/// <summary> /// If the user presses F5, the data of las2peer are loaded in the visualization for testing purposes /// </summary> private void Update() { if (Input.GetKeyDown(KeyCode.F5)) { Debug.Log("Commit Statistcs Test"); diagram.Size = size; visualizer.Owner = "rwth-acis"; visualizer.Repository = "las2peer"; visualizer.UpdateView(); } }
/// <summary> /// Called to deserialize a given SerializedObject and apply its settings to the component /// </summary> /// <param name="serializedObject">The save data which should be deserialized</param> public void Deserialize(SerializedObject serializedObject) { string owner = SerializedObject.TryGet(ownerKey, serializedObject.Strings, gameObject, out bool foundOwner); if (foundOwner) { visualizer.Owner = owner; } string repository = SerializedObject.TryGet(repositoryKey, serializedObject.Strings, gameObject, out bool foundRepository); if (foundRepository) { visualizer.Repository = repository; } if (foundOwner && foundRepository) { visualizer.UpdateView(); } }