public void SetEntityInstancePriority(object entityInstance, int priority) { if (entityInstance == null) { throw new GameFrameworkException("Entity instance is invalid."); } m_InstancePool.SetPriority(entityInstance, priority); }
/// <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); }
/// <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); }
public void SetInstancePriority(IEntity entity, int priority) { m_InstancePool.SetPriority(entity, priority); }
/// <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); }