public static void InitializeObject(object obj) { if (obj is IAwake awakeble) { awakeble.OnAwake(); } ProcessorUpdate.Add(obj); }
public static void InitializeObject(object obj) { var awakeble = obj as IAwake; if (awakeble != null) { awakeble.OnAwake(); } ProcessorUpdate.Add(obj); }
public ProcessorTimer() { ProcessorUpdate.Add(this); }