public void SpawnCoinAt(Vector3 position) { GameObject coin = Instantiate(coinPrefab, position, Quaternion.identity, transform); RezTween.ScaleFromTo(coin, 0.5f, 0, 1, RezTweenEase.SPRING); }
void UpdateText(Text text, int value) { text.text = value.ToString(); RezTween.ScaleFromTo(text.gameObject, 0.5f, 0.5f, 1f, RezTweenEase.BACK_OUT); }