public void addNewDDToVas(SickLettersDraggableDD dd) { if (dd.isCorrect) { game.Poof(dd.transform); dd.resetCorrectDD(); game.onWrongMove(); StartCoroutine(onDroppingCorrectDD()); } else if (!dd.isInVase) { //dd.deattached = true; game.onCorrectMove(dd); //game.checkForNextRound(); } }
void poofDD() { game.Poof(transform); if (game.roundsCount == 0 && !isInVase) { if (isCorrect) { resetCorrectDD(); } else { resetWrongDD(); } game.onWrongMove(); game.tut.doTutorial(); return; } if (!isInVase) { game.onWrongMove(); } if (isCorrect) { StartCoroutine(game.scale.onDroppingCorrectDD()); resetCorrectDD(); } else { if (!deattached) { deattached = true; game.checkForNextRound(); } Destroy(gameObject, 0.0f); } }
IEnumerator coJumpOut(float delay, bool endGame) { letterAnimator.SetBool("dancing", false); yield return(new WaitForSeconds(delay)); letterAnimator.Play("LL_idle_1", -1); game.manager.holeON(); yield return(new WaitForSeconds(0.25f)); letterView.Falling = true; GetComponent <CapsuleCollider>().isTrigger = true; yield return(new WaitForSeconds(.25f)); game.Poof(transform).position += Vector3.up * 8.5f - Vector3.forward; showLLMesh(false); yield return(new WaitForSeconds(.75f)); if (!endGame) { transform.position = new Vector3(statPos.x, 29.04f, statPos.z); StartCoroutine(coJumpIn()); } }