void SpawnBall(Vector3 position, BallType type) { Transform newBall = (Transform)Instantiate(referenceBall, position, Quaternion.identity); newBall.GetComponent <Clickable>().type = type; newBall.GetComponent <Clickable>().SetSprite(ballManager.GetRndFace(type)); currentBallTypes.Add(type); }