コード例 #1
0
        /// <summary>
        /// Initialize collision manager, and registers itself as an ICollidable
        /// </summary>
        public override void Initialize()
        {
            base.Initialize();

            m_CollisionManager = Game.Services.GetService(typeof(ICollisionManager)) as ICollisionManager;

            if (m_CollisionManager != null)
            {
                m_CollisionManager.AddObjectToMonitor(this);
            }
        }