public static void Init() { if (!object.ReferenceEquals(_instance, null)) { if (ObjUtil.IsDestroyed(_instance)) { ObjUtil.SmartDestroy(_instance.gameObject); _instance = null; } else { return; } } _instance = Services.Create <SPTween>(true, SPECIAL_NAME); }
public static void Init() { if (!object.ReferenceEquals(_instance, null)) { if (ObjUtil.IsDestroyed(_instance)) { ObjUtil.SmartDestroy(_instance.gameObject); _instance = null; } else { return; } } _instance = Services.Create <SPTween>(true, SPECIAL_NAME); //_instance = Singleton.CreateSpecialInstance<SPTween>(SPECIAL_NAME, SingletonLifeCycleRule.LivesForever); }