public void startType3Aux(Task w) { w.isWaitingForTaskToComplete = true; waiter = w; state = 0; timer = 0.0f; flechaFader.Start(); flechaFader.setFadeValue(0.0f); textFader.Start(); textFader.setOpacity(0.0f); agresiva.Start(); pasiva.Start(); pasivaAgresiva.Start(); asertiva.Start(); agresiva.reset(); pasiva.reset(); pasivaAgresiva.reset(); asertiva.reset(); somethingTouched = false; fader.fadeIn(); myTurn = gameController.playerTurn == gameController.localPlayerN; for (int i = 0; i < resultMasks.Length; ++i) { resultMasks [i].reset(); } agresiva.fadeIn(); pasiva.fadeIn(); pasivaAgresiva.fadeIn(); asertiva.fadeIn(); botonOK.reset(); botonOK.scaleOutImmediately(); }
// Use this for initialization public void Start() { state = 1; timer = 0.0f; textAndImage.Start(); int i = Random.Range(0, stringsInBubble.Length); string laQueNo = stringsInBubble [i]; emotionText.rosetta = rosetta; int k; int match = 0; for (k = 0; k < emotionText.nItems(); ++k) { string emotionTextk = emotionText.getString(k); if (emotionTextk.Equals(stringsInBubble [i])) { match = k; break; } } if (k < emotionText.nItems()) { icon.texture = emotionTexture [match]; text.text = emotionText.getString(match); } else { Destroy(this.gameObject); Debug.Log("Emotion not found: " + laQueNo); icon.enabled = false; text.enabled = false; } }