public bool Thrash() { if (thrashCount < 5 && elapsedTime > 1.0f) { int rowIndex = Random.Range(0, 2); int colIndex = Random.Range(0, 4); spot = new Vector3(col[colIndex], row[rowIndex], 0.0f); Instantiate(thrash, spot, Quaternion.identity); elapsedTime = 0.0f; anim.thrashAnim(); return(true); } thrashCount = 0; return(false); }