コード例 #1
0
        private void UpdateSprite()
        {
            //needs to also update the player position so the bottom of the player stays in the same place
            ISprite currentSprite = sprite;

            sprite             = SpriteMachine.Instance.CreateSprite(HealthState.GetType().Name + MovementState.GetType().Name);
            Physics.yPosition += currentSprite.GetHeight() - sprite.GetHeight();
        }
コード例 #2
0
 public void UpdateSprite()
 {
     sprite = SpriteMachine.Instance.CreateSprite(HealthState.GetType().Name + MovementState.GetType().Name);
 }