2021-09-24 00:34:18 -06:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class CoinCollect : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public PlatformManager platformManagerScript;
|
|
|
|
|
|
|
|
|
|
private void OnTriggerEnter2D(Collider2D collision)
|
|
|
|
|
{
|
2021-10-07 13:56:22 -06:00
|
|
|
|
ScoreCounter.scoreAmount += 1;
|
2021-09-24 00:34:18 -06:00
|
|
|
|
platformManagerScript.NewPlatform();
|
|
|
|
|
}
|
|
|
|
|
}
|