예제 #1
0
        public void Init()
        {
            InitFBSDK();

            EventSystem.S.Register(EngineEventID.OnApplicationPauseChange, OnApplicationPauseChange);
            ResFactory.RegisterResCreate(FBPhotoRes.PREFIX_KEY, FBPhotoRes.Allocate);
        }
예제 #2
0
        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);
        }