Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyUp(KeyCode.P))
     {
         send.Send("1", "30");
     }
 }
Пример #2
0
    public void Increase(int delta)
    {
        score    += delta;
        counter  += 1;
        text.text = "Score:" + score.ToString();

        if (counter >= 5)
        {
            sendRecord.Send("1", "200");
            counter = 0;
        }
    }