예제 #1
0
 public static void ExtendVisual(this IUpdateableLite obj, Action drawFn)
 {
 }
예제 #2
0
 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));
        }