static public void addTask2Sim(System.Action action) { if (threading != null) { threading.QueueSimulationThread(action); } }
// This method is called on the Main thread but we want the releases on the Simulation thread. public static void ReleaseInstances(IThreading threading) { try { threading.QueueSimulationThread(ReleaseAction); } catch (Exception e) { Util.DebugPrint("ReleaseInstances:"); UnityEngine.Debug.LogException(e); } }
// This method is called on the Main thread but we need to run on the Simulation thread. internal static void Deploy(IThreading threading) { try { threading.QueueSimulationThread(DeployImpl); } catch (Exception e) { Util.DebugPrint("Deploy:"); UnityEngine.Debug.LogException(e); } }