public Cry random() { if (cries != null && cries.Length != 0) { Cry cry = cries[Random.Range(0, cries.Length)]; if (cry != null) { return(cry); } } return(null); }
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); }
public Cry check(Cry cry) { Debug.Log(cry); return(getCry(cry.id)); }
public Cry check(Cry cry) { Debug.Log(cry); return getCry(cry.id); }