示例#1
0
        public Cry random()
        {
            if (cries != null && cries.Length != 0)
            {
                Cry cry = cries[Random.Range(0, cries.Length)];
                if (cry != null)
                {
                    return(cry);
                }
            }

            return(null);
        }
示例#2
0
 public Cry getCry(int id)
 {
     if (cries != null)
     {
         for (int i = 0; i < cries.Length; ++i)
         {
             Cry cry = cries[i];
             if (cry.id == id)
             {
                 return(cry);
             }
         }
     }
     return(null);
 }
示例#3
0
 public Cry check(Cry cry)
 {
     Debug.Log(cry);
     return(getCry(cry.id));
 }
示例#4
0
 public Cry check(Cry cry)
 {
     Debug.Log(cry);
     return getCry(cry.id);
 }