void OnTumbleComplete() { DominoRacer.currentTumbeling[laneIdx] = null; isTumbleing = false; if (willKnock1 != null) { willKnock1.Tumble(); } if (willKnock2 != null) { willKnock2.Tumble(); } }
void Start() { currentTumbeling = new List <DominoBlock>(); InitLevel(); for (int laneIdx = 0; laneIdx < lanes; laneIdx++) { currentTumbeling.Add(null); DominoBlock block = level[0][laneIdx]; block.Tumble(); } StartCoroutine(Game()); }