예제 #1
0
    public void SpawnCoinAt(Vector3 position)
    {
        GameObject coin = Instantiate(coinPrefab, position, Quaternion.identity, transform);

        RezTween.ScaleFromTo(coin, 0.5f, 0, 1, RezTweenEase.SPRING);
    }
예제 #2
0
 void UpdateText(Text text, int value)
 {
     text.text = value.ToString();
     RezTween.ScaleFromTo(text.gameObject, 0.5f, 0.5f, 1f, RezTweenEase.BACK_OUT);
 }