public void GoHome() { Hide(); State = UfoStates.Waiting; X = Scene.MinX - Width; Y = 90; Speed = 0; StopSound("ufo"); Wait(10, Launch); }
public void Launch() { SetCostume("ufo"); Show(); GhostEffect = 0; Scale = UfoScale; X = -100; // Scene.MinX - Width; State = UfoStates.Flying; Direction = 0; Speed = 0.5f; PlaySound("ufo", loop: true); }
public void Explode() { State = UfoStates.Exploding; SetCostume("AlienDeath"); Speed = 0; StopSound("ufo"); PlaySound("UfoDeath"); Wait(0.5, () => { SetCostume("UfoScore"); Wait(1, GoHome); }); }