示例#1
0
        public static void ComponentGetAllTest()
        {
            Scene            s = new Scene();
            SimulationObject o = s.AddObject();

            o.AddComponent <LifeCycleComponent>();
            IList <Component> c = o.GetComponents <Component>();

            Console.WriteLine(c.Count);
            foreach (object obj in c)
            {
                Console.WriteLine(obj.GetType().Name);
            }
        }