コード例 #1
0
ファイル: Scene.cs プロジェクト: s24569/AtomicGameEngine
        void HandlePhysicsPostStep(PhysicsPostStepEvent e)
        {
            Object[] args = new Object[1] {
                e.TimeStep
            };

            foreach (var item in cscomponents)
            {
                var info = item.Key;

                var PhysicsPostStepMethod = info.PhysicsPostStepMethod;

                if (PhysicsPostStepMethod == null)
                {
                    continue;
                }

                foreach (var csc in item.Value)
                {
                    if (!csc.Started || !csc.IsEnabled())
                    {
                        continue;
                    }

                    PhysicsPostStepMethod.Invoke(csc, args);
                }
            }
        }
コード例 #2
0
ファイル: Scene.cs プロジェクト: Type1J/AtomicGameEngine
        void HandlePhysicsPostStep(PhysicsPostStepEvent e)
        {
            Object[] args = new Object[1] { e.TimeStep };

            foreach (var item in cscomponents)
            {
                var info = item.Key;

                var PhysicsPostStepMethod = info.PhysicsPostStepMethod;

                if (PhysicsPostStepMethod == null)
                    continue;

                foreach (var csc in item.Value)
                {
                    if (!csc.Started || !csc.IsEnabled())
                        continue;

                    PhysicsPostStepMethod.Invoke(csc, args);
                }

            }
        }