using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerStats : MonoBehaviour { public int collisionCounter; public int coinCounter; // Start is called before the first frame update void Start() { collisionCounter = 0; coinCounter = 0; } // Update is called once per frame void Update() { } public void IncreaseCollisionCounter() { collisionCounter += 1; } public void IncreaseCoinCounter() { coinCounter += 1; } }