gimm-platformer-project/Assets/Scripts/CoinCollect.cs
2021-09-24 00:34:18 -06:00

14 lines
344 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CoinCollect : MonoBehaviour
{
public PlatformManager platformManagerScript;
private void OnTriggerEnter2D(Collider2D collision)
{
ScoreCounter.coinAmount += 1;
platformManagerScript.NewPlatform();
}
}