骑行页面消息通知

在线用户和影子选手用图片显示,缩放等功能按钮微调
This commit is contained in:
lishuo committed 2021-05-11 18:21:32 +08:00
1 parent 2b4b2c4f70
commit 8f0598580d
37 files changed
+5951 -3153

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.Scenes.Ride.Scripts
{
public abstract class Singleton<T> where T : class, new()
{
private static T instance = null;
private static readonly object locker = new object();
public static T Instance
{
get
{
lock (locker)
{
if (instance == null)
instance = new T();
return instance;
}
}
}
}
}