unity3d:单例模式,Mono场景唯一,不销毁;C# where T:new(),泛型约束;Lua单例模式,table ,self
Mono单例场景里挂载了,先找场景里有的DontDestroyOnLoadusing System;using System.Collections.Generic;using System.Linq;using System.Text;using UnityEngine;namespace Sin...
Mono单例场景里挂载了,先找场景里有的DontDestroyOnLoadusing System;using System.Collections.Generic;using System.Linq;using System.Text;using UnityEngine;namespace Sin...