Tanoda
PenaltyCounter.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class PenaltyCounter : MonoBehaviour
6{
7 internal float penaltyTime = 0;
8 public static PenaltyCounter Instance;
9 // Start is called before the first frame update
10 void Start()
11 {
12 Instance = this;
13 }
14
15 // Update is called once per frame
16 void Update()
17 {
18
19 }
20
21 internal float CountPenalty()
22 {
23 return penaltyTime;
24 }
25}
static PenaltyCounter Instance