public void OnCoinPrice(int _coinPrice) { priceList.Add(_coinPrice); if (priceList.Count > 10) { priceList.RemoveAt(0); } graphRenderer.priceList = priceList; graphRenderer.ChangeChart(); }