Example #1
0
        public override void Bump()
        {
            SolidBlock solidBlock = new SolidBlock(Location());

            GameManager.Instance.Replace(this, solidBlock);
            solidBlock.Bump();
            solidBlock.EndBump();
        }
Example #2
0
        public override void Bump()
        {
            base.Bump();
            itemState.ReleaseItem();
            SolidBlock solidBlock = new SolidBlock(Location());

            bumpState.Bump();
            solidBlock.Bump();
            GameManager.Instance.Replace(this, solidBlock);
        }