public void Reset(float timer, OnFinishedTimer onFinishedTimer) { StopAllCoroutines(); this.time = timer; this.onFinishedTimer = onFinishedTimer; StartCoroutine(UpdateTimer()); }
public void Init(string id, float time, OnFinishedTimer onFinishedTimer) { this.id = id; this.time = time; this.onFinishedTimer = onFinishedTimer; StartCoroutine(UpdateTimer()); }