コード例 #1
0
        public void DrawHitBox(IGameEntity gameEntity, float time)
        {
            var hitBoxComponent = GetHitBoxComponent(gameEntity);

            if (hitBoxComponent != null)
            {
                var position = gameEntity.Position.Value;
                DebugDraw.DebugWireSphere(GetPosition(gameEntity),
                                          GetRadius(gameEntity), time);
                HitBoxGameObjectUpdater.DrawBoundBox(hitBoxComponent.HitBoxGameObject.transform, time);
            }
        }
コード例 #2
0
        public void DrawHitBox(IGameEntity gameEntity, float time)
        {
            var subManager = GetSubManager(gameEntity.EntityType);

            if (subManager != null)
            {
                DebugDraw.DebugWireSphere(GetPosition(gameEntity), GetRadius(gameEntity), time);
                foreach (var item in subManager.GetCollidersTransform(gameEntity.EntityKey))
                {
                    HitBoxGameObjectUpdater.DrawBoundBox(item, time);
                }
            }
        }