private void Awake() { if (instance != null) { Destroy(gameObject); return; } else { instance = this; DontDestroyOnLoad(gameObject); } if (isTest) { ES2.Delete(SaveSystem.STAGE); ES2.Delete(SaveSystem.SKIN); } SkinSystem.Init(); ConfigSystem.Init(); SaveSystem.Init(); EventSystem.Init(); SetGrabvity(); //Screen.SetResolution(540, 960, false); }
public static void Init() { instance = new SkinSystem(); SkinClass skinClass = (SkinClass)Resources.Load("Configs/Skins"); instance.stageSkinList = skinClass.stageSkinList; instance.adSkinList = skinClass.adSkinList; }