public override void Dispose() { lock (_sync) { _stopGivingGil = true; } if (GiveGilAnimation != null) { GiveGilAnimation.Join(); GiveGilAnimation = null; } }
private void Exit() { foreach (Inventory.Record item in _taken) { for (int i = 0; i < item.Count; i++) { PostBattleState.Party.Inventory.AddToInventory(item.Item); } } lock (_sync) { _stopGivingGil = true; } GiveGilAnimation.Join(); GiveGilAnimation = null; PostBattleState.Seven.EndPostBattle(); }