Beispiel #1
0
 /// <summary>
 /// 注册耗能组件到节点
 /// </summary>
 /// <param name="comp"></param>
 public void RegisterToNetPort(VoidNetBuildCompBase comp)
 {
     if (voidNetBuildCompBases.Any((x) => { return(x == comp); }))
     {
         zzLib.Log.Warning("存在重复注册的组件");
         return;
     }
     voidNetBuildCompBases.Add(comp);
 }
Beispiel #2
0
 /// <summary>
 /// 从节点中移除耗能组件
 /// </summary>
 /// <param name="comp"></param>
 public void RestoreFormNetPort(VoidNetBuildCompBase comp)
 {
     voidNetBuildCompBases.Remove(comp);
 }