Global Game Jam 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
492 B

2 years ago
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using TMPro;
  5. using Variables;
  6. public class TimerController : MonoBehaviour
  7. {
  8. [SerializeField]
  9. private Reference<float> m_time;
  10. private Color m_defaultColor;
  11. private void OnEnable()
  12. {
  13. m_time.OnValueChanged += OnTimeChange;
  14. }
  15. private void OnDisable()
  16. {
  17. m_time.OnValueChanged -= OnTimeChange;
  18. }
  19. private void OnTimeChange(float value)
  20. {
  21. }
  22. }