PlayerStats.cs 440 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class PlayerStats : MonoBehaviour
  5. {
  6. public int collisionCounter;
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. collisionCounter = 0;
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. }
  16. public void IncreaseCollisionCounter()
  17. {
  18. collisionCounter += 1;
  19. }
  20. }