public void UpdateGameObject(IRosaceUpdate source, GameObject obj) { var l = obj.FastGetComponents <IRosaceUpdate>(); l.Remove(source); RosaceUpdate.UpdateList(l); }
public static void RegisterUpdater(IRosaceUpdate update) { if (rosaceUpdaters.Contains(update)) { Debug.LogError($"Trying to register a rosace updater twice!"); return; } pendingUpdaters.Add(update); }
public static void DeregisterUpdater(IRosaceUpdate update) { rosaceUpdaters.Remove(update); }