/// <summary> /// Calls when the mover moved to another <see cref="Cell"/>. /// </summary> protected virtual void OnLocationChanged(object sender, PositionEventArgs e) { ; }
/// <summary> /// Calls when the mover has been relocated not by moving. /// </summary> private void mover_Relocated(object sender, PositionEventArgs e) { OnDestinationReached(); }
private void Player_OnLocationChanged(object sender, PositionEventArgs e) { // Check finish point if (Map.Instance.DropsRemain == 0 && Map.Instance.GetCell(Player.Position).HasAttribute(CellAttributes.IsFinish)) { Player.AddPoints(30); ++Map.Instance.CurrentLevel; ClearPlayerAurasAndSpells(); } }