示例#1
0
 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!!!");
     }
 }
示例#2
0
    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
    }