protected DreidelBase(Game i_Game, Vector3 i_Position, Color i_StickColor) : base(i_Game) { i_Game.Components.Add(this); Position = i_Position; m_Pyramid = new Pyramid(i_Game); Add(m_Pyramid); m_Stick = new Stick(i_Game, i_StickColor, new Vector3(0, 1, 0), new Vector3(.25f, 1f, .25f)); Add(m_Stick); }
public void Add(Base3DElement i_Element) { if (!r_Components.Contains(i_Element)) { r_Components.Add(i_Element); i_Element.Initialize(); i_Element.RotationsPerSecond = RotationsPerSecond; i_Element.Scales = Scales; i_Element.Position = Position; i_Element.SpinEnabled = SpinEnabled; } }