private SpringBlock CreateSpringBlock(XElement node) { SpringBlock newSpringBlock = new SpringBlock(); newSpringBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")); return(newSpringBlock); }
private SpringBlock CreateSpringBlock(XElement node) { SpringBlock newSpringBlock = new SpringBlock(); newSpringBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")); return newSpringBlock; }
private void HandleSpringBlockLaunch(SpringBlock launcher) { SoundEffectManager.PlayEffect("spring-launch"); _motionEngine.SetForBoostedJump(); launcher.TriggerLaunchAnimation(); }