void LoadNextStone() { if (currentStone < Stones.Length) { LetterTracingStone lts = Stones [currentStone]; lts.onCompleteGame = onStoneLocated; lts.onCompleteIdle = onStoneHided; lts.OpenGame(); } else { // if (MiniGameController.Instance != null) { // MiniGameController.Instance.ResetEmotion (); // } if (animController != null) { animController.SetBool("IsSad", false); animController.SetInteger("EmotionState", 1); } Analitics.Instance.treckScreen("Letter Tracing Done - Profile: " + UsersController.Instance.CurrentProfileId); EndMiniGame(); } }
void onStoneLocated() { LetterTracingStone lts = Stones [currentStone]; lts.onCompleteGame = null; GameManager.loadShape(lts.shape); lts.shape.init(); if (AudioController.Instance) { AudioController.Instance.PlaySound(StartTraceingSound); } }
void onStoneHided() { LetterTracingStone lts = Stones [currentStone]; lts.onCompleteIdle = null; lts.shape.DisableTracingHand(); currentStone++; ShowPositiveFeedback(); if (animController != null) { animController.SetInteger("EmotionState", 1); } Invoke("sd", 0.5f); }
public void complete() { LetterTracingStone lts = Stones [currentStone]; lts.CloseGame(); }