public void Share() { // colocar delay, e se clicar demais, tirar viewrs e trigerrar comentario if (shareClicks++ == 0 && boost == 0) { boost = 1; } else if (shareClicks >= 7) { baseViewers -= Mathf.RoundToInt(Mathf.Log(shareClicks) / 10); Chat.AddCommentToChat(Comentario.getRandName(), "Para de spamma!!!"); } }
public void Comentar() { string s; if (UnityEngine.Random.Range(0, 100) > Atributos.rating) { Atributos.rep -= Mathf.RoundToInt(UnityEngine.Random.Range(.05f, .2f) * Atributos.rep); Atributos.rep = Mathf.Max(0, Atributos.rep); int i = getEquipmentToComment(); s = comentario [i] [UnityEngine.Random.Range(0, comentario [i].Length)]; } else { s = comentarioPositivo[UnityEngine.Random.Range(0, comentarioPositivo.Length)]; } Chat.AddCommentToChat(getRandName(), s); // printar s como comentario }