示例#1
0
 public override void Added(Scene scene)
 {
     base.Added(scene);
     if (isCore)
     {
         iceModeNext = iceMode = SceneAs <Level>().CoreMode == Session.CoreModes.Cold;
         ToggleSprite();
     }
     scene.Add(pathRenderer = new ZipMoverPathRenderer(this));
 }
 public override void Added(Scene scene)
 {
     base.Added(scene);
     scene.Add(pathRenderer = new ZipMoverPathRenderer(this));
     if (flipDirection)
     {
         target = Position - (target - Position);
     }
     SetupTrolls();
 }
 public override void Removed(Scene scene)
 {
     if (trollBehavior != TrollBehaviors.FallBlock)
     {
         scene.Remove(pathRenderer);
         pathRenderer = null;
     }
     base.Removed(scene);
     Audio.Stop(moveSfx);
     Audio.Stop(returnSfx);
 }