switch from Unity version control to git

This commit is contained in:
Leo Qu
2026-01-07 23:54:53 -05:00
commit a098ec74d9
10166 changed files with 1614580 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using UnityEngine;
public class DiscoveryButton : MonoBehaviour
{
public TopologyBuilder topologyBuilder;
void Start()
{
ControlLibrary.init(); // todo: where should this be? needs to be somewhere on startup of the game.
}
public void OnDiscoveryPressed()
{
if (topologyBuilder != null)
{
Debug.Log("Discovery button pressed.");
topologyBuilder.BuildTopologyFromJson();
}
else
{
Debug.LogError("TopologyBuilder is not assigned!");
}
}
void OnDestroy()
{
Debug.Log("Cleaning up native resources");
ControlLibrary.cleanup();
}
}