public static void ExtendVisual(this IUpdateableLite obj, Action drawFn) { }
public static bool IsVisual(this IUpdateableLite obj) { return(obj.GetType().GetInterface(nameof(IVisualGameObject)) != null); }
//public static void AddTimeBehaviour(this IGameObjectDictionary subject, TimeSpan time,Action action) //{ // subject.Add($"{Guid.NewGuid().ToString()}_GameTimeTimerBehaviourWrapper", // new UpdateableBehaviourWrapper(new GameTimeTimer(time).Do(action))); //} public static void AddUpdateable(this IGameObjectDictionary subject, IUpdateableLite updateable) { subject.Add($"{Guid.NewGuid().ToString()}_UpdateableBehaviourWrapper", new UpdateableBehaviourWrapper(updateable)); }