少年修仙传客户端代码仓库
client_Wu Xijin
2019-03-05 60f616fc149c620953f468d1383f15a810f898df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
public static class VesselExtension
{
 
    public static bool IsNullOrEmpty<T>(this List<T> vessel)
    {
        return vessel == null || vessel.Count == 0;
    }
 
    public static bool IsNullOrEmpty<T>(this T[] vessel)
    {
        return vessel == null || vessel.Length == 0;
    }
 
}