public void SetEntityInstancePriority(object entityInstance, int priority)
            {
                if (entityInstance == null)
                {
                    throw new GameFrameworkException("Entity instance is invalid.");
                }

                m_InstancePool.SetPriority(entityInstance, priority);
            }
예제 #2
0
        /// <summary>
        /// 设置界面实例的优先级。
        /// </summary>
        /// <param name="uiFormInstance">要设置优先级的界面实例。</param>
        /// <param name="priority">界面实例优先级。</param>
        public void SetUIFormInstancePriority(object uiFormInstance, int priority)
        {
            if (uiFormInstance == null)
            {
                throw new GameFrameworkException("UI form instance is invalid.");
            }

            m_InstancePool.SetPriority(uiFormInstance, priority);
        }
예제 #3
0
        /// <summary>
        /// 设置界面的优先级。
        /// </summary>
        /// <param name="uiForm">要设置优先级的界面。</param>
        /// <param name="priority">界面优先级。</param>
        public void SetUIFormPriority(IUIForm uiForm, int priority)
        {
            if (uiForm == null)
            {
                throw new System.Exception("UI form is invalid.");
            }

            m_InstancePool.SetPriority(uiForm, priority);
        }
            public void SetItemInstancePriority(object ItemInstance, int priority)
            {
                if (ItemInstance == null)
                {
                    throw new GameFrameworkException("Item instance is invalid.");
                }

                m_InstancePool.SetPriority(ItemInstance, priority);
            }
예제 #5
0
 public void SetInstancePriority(IEntity entity, int priority)
 {
     m_InstancePool.SetPriority(entity, priority);
 }
예제 #6
0
 /// <summary>
 /// 设置界面实例的优先级。
 /// </summary>
 /// <param name="uiFormInstance">要设置优先级的界面实例。</param>
 /// <param name="priority">界面实例优先级。</param>
 public void SetUIFormInstancePriority(object uiFormInstance, int priority)
 {
     Guard.Verify <ArgumentException>(uiFormInstance == null, $"UI form instance is invalid.");
     m_InstancePool.SetPriority(uiFormInstance, priority);
 }