public static void Buy(IBuyable buyableScript) { if (buyableScript.Price() <= gold) { GoldExtraction(buyableScript.Price()); } }
public static bool GoldIsEnoughToBuy(IBuyable buyableScript) { if (buyableScript.Price() <= gold) { return(true); } else { FloatingTextController.CreateWarningText("The current money is not enough to buy"); return(false); } }