protected void setupGame() { GameUtil.reset(); GameUtil.isGameOn = true; rack.showDiskSelector(); rack.createSpecial(newSpecialLocation()); }
protected void onDiskDown(IntVector2 pos) { int id = RackUtil.checkWin(); if (id > 0) { playerWon(id); } else { if (pos == GameUtil.currentSpecial) { //activateDelete(); if (GameUtil.onTurn) { GameUtil.special1 = UnityEngine.Random.Range(1, 4); } else { GameUtil.special2 = UnityEngine.Random.Range(1, 4); } GameUtil.playOneShot("SpecialPickUp"); IntVector2 v = newSpecialLocation(); NetworkManager.postNewSpecial(v.x, v.y); rack.createSpecial(v); } } }