0
Answered

Singleton's persistent, automatic variables are static

gayanw 9 months ago updated by Lazlo Bonin (Lead Developer) 8 months ago 1

I've had a look at the Chronos singleton class, and its constructor params like `persistent`, `automatic` are static. It is being inherited by the only Timekeeper, so this is fine I guess.

Does that mean we can't reuse the Singleton class?

Chronos Version:
Unity Version:
GOOD, I'M SATISFIED
Satisfaction mark by gayanw 8 months ago
+1
Answered

Hi Gayanw,

The singleton class is indeed only meant to be used internally. However, it could theoretically be reused, because static params are not shared across generic type variations.