public override void Dispose() { if (!IsDisposed) { m_tutorialText.Dispose(); m_tutorialText = null; m_king.Dispose(); m_king = null; base.Dispose(); } }
public override void Dispose() { if (!base.IsDisposed) { this.m_tutorialText.Dispose(); this.m_tutorialText = null; this.m_king.Dispose(); this.m_king = null; base.Dispose(); } }
public override void LoadContent(GraphicsDevice graphics) { m_tutorialText = new KeyIconTextObj(Game.JunicodeLargeFont); m_tutorialText.FontSize = 28f; m_tutorialText.Text = "Press [Input:" + 12 + "] to Attack"; m_tutorialText.Align = Types.TextAlign.Centre; m_tutorialText.OutlineWidth = 2; m_king = new KingObj("King_Sprite"); m_king.OutlineWidth = 2; m_king.AnimationDelay = 0.1f; m_king.PlayAnimation(); m_king.IsWeighted = false; m_king.IsCollidable = true; m_king.Scale = new Vector2(2f, 2f); base.LoadContent(graphics); }
public override void LoadContent(GraphicsDevice graphics) { this.m_tutorialText = new KeyIconTextObj(Game.JunicodeLargeFont); this.m_tutorialText.FontSize = 28f; this.m_tutorialText.Text = "Press [Input:" + 12 + "] to Attack"; this.m_tutorialText.Align = Types.TextAlign.Centre; this.m_tutorialText.OutlineWidth = 2; this.m_king = new KingObj("King_Sprite"); this.m_king.OutlineWidth = 2; this.m_king.AnimationDelay = 0.1f; this.m_king.PlayAnimation(true); this.m_king.IsWeighted = false; this.m_king.IsCollidable = true; this.m_king.Scale = new Vector2(2f, 2f); base.LoadContent(graphics); }