Example #1
0
        public void UpdateGameObject(IRosaceUpdate source, GameObject obj)
        {
            var l = obj.FastGetComponents <IRosaceUpdate>();

            l.Remove(source);
            RosaceUpdate.UpdateList(l);
        }
Example #2
0
    public static void RegisterUpdater(IRosaceUpdate update)
    {
        if (rosaceUpdaters.Contains(update))
        {
            Debug.LogError($"Trying to register a rosace updater twice!");
            return;
        }

        pendingUpdaters.Add(update);
    }
Example #3
0
 public static void DeregisterUpdater(IRosaceUpdate update)
 {
     rosaceUpdaters.Remove(update);
 }