Beispiel #1
0
		public void OnMoveDone(Coin coin, string msg)
		{
			if (coin.State != eCoinState.Idle)
				return;
			Cell cell = GetCell(coin.PlaceId);
			cell.CoinRef = coin;

			if (msg == "failSwap")
			{
				coin.MoveToSpeedBased(coin.GetRealPosition(), 0, swapSpeed, "doneFailSwap");
			}
			else if (msg != "doneFailSwap" && m_busy == 0)
			{
				CheckAll(0);
			}
		}