public FrequencyUpdateBatch(float frequency) { behaviours = new Dictionary <MonoBehaviour, List <System.Action> >(); timer = new Countdown(frequency); timer.SetCallback(Invoke); timer.resetOnFinished = true; }
//------------------------------------------------------------------------/ // Messages //------------------------------------------------------------------------/ protected override void OnAwake() { timer = new Countdown(duration); timer.SetCallback(OnTimerFinished); timer.resetOnFinished = resetOnDisabled; }