protected override void OnAddToStageComplete() { base.OnAddToStageComplete(); levelScreen = (BaseScreen)screen; sourceCenter = GetGlobalOffset(laserSource.Position); point1 = new Vector2(sourceCenter.X / V2DScreen.WorldScale, sourceCenter.Y / V2DScreen.WorldScale); laserParticles = (LaserParticleEffect)CreateInstance( "laserParticles", "laserParticles", sourceCenter.X, sourceCenter.Y, 0); }
public override void RemovedFromStage(EventArgs e) { base.RemovedFromStage(e); levelScreen = null; }