public Celebration(DateTime date, string title, CelebrationType celebrationType) { Id = Guid.NewGuid(); Date = date; Title = title; CelebrationType = celebrationType; }
public void Celebrar(string i, Intencion a) { palabraEscogida = true; Puntos = Puntuar(intFrase, a); bool encadenado = false; Celebra = CelebrationType.Descansa; if (Puntos == 1) { Celebra = CelebrationType.Fuerte; } else if (Puntos == 0.5f) { if (puntajeAnterior == Puntos) { Celebra = CelebrationType.Fuerte; encadenado = true; } else { Celebra = CelebrationType.Media; } } else if (Puntos == 0.25f) { if (puntajeAnterior == Puntos) { Celebra = CelebrationType.Descansa; encadenado = true; } else { Celebra = CelebrationType.Breve; } } if (!encadenado) { puntajeAnterior = Puntos; } else { puntajeAnterior = 0; } //StartCoroutine(Celebracion()); //Debug.Log("Celebración: " + Celebra); //Debug.Log("Encadenado: " + encadenado); }