コード例 #1
0
    private void RmvAllHpItemInfo(object sender, GameEventArgs e)
    {
        RmvAllHpItemInfoEventArgs ne = e as RmvAllHpItemInfoEventArgs;

        foreach (var item in itemDic)
        {
            Destroy(item.Value.gameObject);
        }
        itemDic.Clear();
    }
コード例 #2
0
 public static void RmvAllHpItemInfo(this UIComponent uiComponent)
 {
     if (uiComponent.HasUIForm(UIFormId.DynamicForm))
     {
         RmvAllHpItemInfoEventArgs eventArgs = ReferencePool.Acquire <RmvAllHpItemInfoEventArgs>();
         GameEntry.Event.Fire(uiComponent, eventArgs);
     }
     else
     {
         uiComponent.OpenUIForm(UIFormId.DynamicForm);
     }
 }