14 lines
345 B
C#
14 lines
345 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CoinCollect : MonoBehaviour
|
|
{
|
|
public PlatformManager platformManagerScript;
|
|
|
|
private void OnTriggerEnter2D(Collider2D collision)
|
|
{
|
|
ScoreCounter.scoreAmount += 1;
|
|
platformManagerScript.NewPlatform();
|
|
}
|
|
}
|