[WIP] firebase init Error

This commit is contained in:
2024-08-02 20:09:59 +08:00
commit b77fd9f498
7087 changed files with 1466846 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#if UNITY_METRO
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace UniRx
{
public static class Thread
{
public static void Sleep(TimeSpan wait)
{
new System.Threading.ManualResetEvent(false).WaitOne(wait);
}
public static void Sleep(int ms)
{
new System.Threading.ManualResetEvent(false).WaitOne(ms);
}
}
}
#endif

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b79fc02e92c3d4e43afc13c648b7500d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,100 @@
#if UNITY_METRO
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
#if NETFX_CORE
using System.Threading.Tasks;
#endif
namespace UniRx
{
public static partial class Scheduler
{
public static readonly IScheduler ThreadPool = new ThreadPoolScheduler();
class ThreadPoolScheduler : IScheduler
{
public DateTimeOffset Now
{
get { return Scheduler.Now; }
}
public IDisposable Schedule(Action action)
{
var d = new BooleanDisposable();
#if NETFX_CORE
Task.Run(()=>
{
if (!d.IsDisposed)
{
action();
}
});
#else
Action act = () =>
{
if (!d.IsDisposed)
{
action();
}
};
act.BeginInvoke(ar => act.EndInvoke(ar), null);
#endif
return d;
}
public IDisposable Schedule(TimeSpan dueTime, Action action)
{
var wait = Scheduler.Normalize(dueTime);
var d = new BooleanDisposable();
#if NETFX_CORE
Task.Run(()=>
{
if (!d.IsDisposed)
{
if (wait.Ticks > 0)
{
Thread.Sleep(wait);
}
action();
}
});
#else
Action act = () =>
{
if (!d.IsDisposed)
{
if (wait.Ticks > 0)
{
Thread.Sleep(wait);
}
action();
}
};
act.BeginInvoke(ar => act.EndInvoke(ar), null);
#endif
return d;
}
}
}
}
#endif

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 17f56c66cb23cd244afa7b3d10fcb661
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: