Beispiel #1
0
        public void Update(float dt)
        {
            DaemonManager.Instance().Run();

            Dictionary <int, GameObjRef> .Enumerator it = m_dicObjRef.GetEnumerator();
            m_lstObjsRefKey.Clear();
            while (it.MoveNext())
            {
                if (it.Current.Value.go == null)
                {
                    m_lstObjsRefKey.Add(it.Current.Key);
                    it.Current.Value.goObj.Release();
                }
            }
            for (int i = 0; i < m_lstObjsRefKey.Count; i++)
            {
                m_dicObjRef[m_lstObjsRefKey[i]] = null;
                m_dicObjRef.Remove(m_lstObjsRefKey[i]);
            }



            RenderObjManager.Instance().Update(dt);
            ResourceManager.Instance().Update(dt);
        }
Beispiel #2
0
 public void Release()
 {
     for (int i = 0; i < lstDepends.Count; i++)
     {
         lstDepends[i].Release();
     }
     RenderObjManager.Instance().RemoveGameObj(this);
 }
Beispiel #3
0
 public void Release()
 {
     bIsPlaying = false;
     m_node.SetActive(false);
     RenderObjManager.Instance().AddRemoveEffectId(code);
 }
Beispiel #4
0
 public void ClearObjPool()
 {
     RenderObjManager.Instance().Clear();
 }
Beispiel #5
0
 public IEffect CreateEffect(string strEffectName, TaskPriority ePriority = TaskPriority.TaskPriority_Immediate, bool bCacheObj = true, bool bCacheForever = false)
 {
     return(RenderObjManager.Instance().CreateEffect(ref strEffectName, ePriority, bCacheObj, bCacheForever));
 }
Beispiel #6
0
 public IGameObject CreateGameObject(string strPrefabName, CreateGameObjectEvent callBack, object custumParam = null,
                                     TaskPriority ePriority = TaskPriority.TaskPriority_Normal, bool bCacheObj = true, bool bCacheForever = false)
 {
     return(RenderObjManager.Instance().CreateGameObj(ref strPrefabName, callBack, custumParam, ePriority, bCacheObj, bCacheForever));
 }