MyGame.CDrawableComponent.CDrawableComponent C# (CSharp) Method

CDrawableComponent() public method

public CDrawableComponent ( MyGame game, Unit unit, CModel model ) : System
game MyGame
unit Unit
model CModel
return System
        public CDrawableComponent(MyGame game,Unit unit, CModel model)
            : base(game)
        {
            myGame = game;
            this.unit = unit;
            this.cModel = model;
            unit.BoundingSphere = cModel.buildBoundingSphere();
            unit.BoundingBox = cModel.buildBoundingBox();
        }