Skip to content
Snippets Groups Projects

statup menu ui added and fixes: readded xr interaction toolkit thats accidentally deleted. and added fixed gitignore

128 files
+ 29998
56
Compare changes
  • Side-by-side
  • Inline

Files

 
#if UNITY_EDITOR || UNITY_ANDROID
 
using UnityEngine;
 
 
namespace SimpleFileBrowser
 
{
 
public class FBCallbackHelper : MonoBehaviour
 
{
 
private System.Action mainThreadAction = null;
 
 
private void Awake()
 
{
 
DontDestroyOnLoad( gameObject );
 
}
 
 
private void Update()
 
{
 
if( mainThreadAction != null )
 
{
 
System.Action temp = mainThreadAction;
 
mainThreadAction = null;
 
temp();
 
}
 
}
 
 
public void CallOnMainThread( System.Action function )
 
{
 
mainThreadAction = function;
 
}
 
}
 
}
 
#endif
 
\ No newline at end of file
Loading