public void SetEntityInstanceLocked(object entityInstance, bool locked)
            {
                if (entityInstance == null)
                {
                    throw new GameFrameworkException("Entity instance is invalid.");
                }

                m_InstancePool.SetLocked(entityInstance, locked);
            }
Example #2
0
        /// <summary>
        /// 设置界面实例是否被加锁。
        /// </summary>
        /// <param name="uiFormInstance">要设置是否被加锁的界面实例。</param>
        /// <param name="locked">界面实例是否被加锁。</param>
        public void SetUIFormInstanceLocked(object uiFormInstance, bool locked)
        {
            if (uiFormInstance == null)
            {
                throw new GameFrameworkException("UI form instance is invalid.");
            }

            m_InstancePool.SetLocked(uiFormInstance, locked);
        }
Example #3
0
        /// <summary>
        /// 设置界面是否被加锁。
        /// </summary>
        /// <param name="uiForm">要设置是否被加锁的界面。</param>
        /// <param name="locked">界面是否被加锁。</param>
        public void SetUIFormLocked(IUIForm uiForm, bool locked)
        {
            if (uiForm == null)
            {
                throw new System.Exception("UI form is invalid.");
            }

            m_InstancePool.SetLocked(uiForm, locked);
        }
            public void SetItemInstanceLocked(object ItemInstance, bool locked)
            {
                if (ItemInstance == null)
                {
                    throw new GameFrameworkException("Item instance is invalid.");
                }

                m_InstancePool.SetLocked(ItemInstance, locked);
            }
Example #5
0
 public void SetInstanceLocked(IEntity entity, bool locked)
 {
     m_InstancePool.SetLocked(entity.Handle, locked);
 }
Example #6
0
 /// <summary>
 /// 设置界面实例是否被加锁。
 /// </summary>
 /// <param name="uiFormInstance">要设置是否被加锁的界面实例。</param>
 /// <param name="locked">界面实例是否被加锁。</param>
 public void SetUIFormInstanceLocked(object uiFormInstance, bool locked)
 {
     Guard.Verify <ArgumentException>(uiFormInstance == null, $"UI form instance is invalid.");
     m_InstancePool.SetLocked(uiFormInstance, locked);
 }