public static void LoadSellingController(SellingControllerData data) { if (data == null) { return; } sellSpeed = data.sellSpeed; _oresToSell = data.oresToSell; }
public static void LoadSellingController(SellingControllerData data) { if (data == null) { return; } sellSpeed = data.sellSpeed; _oresToSell = data.oresToSell; Debug.Log("ores 2 sell count: " + _oresToSell.Count); if (_oresToSell.Count != 0) { FindObjectOfType <SellingController>().StartSellCoroutine(); } }