public void Init() { InitFBSDK(); EventSystem.S.Register(EngineEventID.OnApplicationPauseChange, OnApplicationPauseChange); ResFactory.RegisterResCreate(FBPhotoRes.PREFIX_KEY, FBPhotoRes.Allocate); }
public IRes GetRes(string name, bool createNew = false) { IRes res = null; if (m_ResDictionary.TryGetValue(name, out res)) { return(res); } if (!createNew) { return(null); } res = ResFactory.Create(name); if (res != null) { m_ResDictionary.Add(name, res); m_ResList.Add(res); } return(res); }