// toss cat public void TossCat() { if (heldCat != null) { heldCat.ResetBoredom(); DestroyImmediate(joint); // not actually height, but proportional to it float tossHeight = Random.Range(0, maxTossSpeed); playSound(sounds[2]); spawnerComponent.LaunchCat(heldCat, new Vector3(1, tossHeight, 0)); heldCat.BelongsToPlayer = true; // start checking if the cat is out of bounds heldCat.Activate(); heldCat = null; } }