/// <summary> /// Character attempts to exit a vehicle shop /// </summary> /// <param name="client">Client</param> /// <param name="id">Shop id</param> public void TryExitVehicleShop(Character character, int id) { VehicleShop shop = GetVehicleShopWithId(id); if (shop != null) { shop.ExitShop(character); } }
/// <summary> /// Character attempts to exit a vehicle shop /// </summary> /// <param name="c">Client</param> /// <param name="id">Shop id</param> public void TryExitVehicleShop(Client c, int id) { if (PlayerManager.Instance().IsClientUsingCharacter(c)) { Character character = PlayerManager.Instance().GetActiveCharacterForClient(c); VehicleShop shop = GetVehicleShopWithId(id); if (shop != null) { shop.ExitShop(character); } } }