示例#1
0
 public void Start_Countdown(int time, Action func)
 {
     Debug.Log(string.Format("start {0}", time.ToString()));
     if (time == 0)
     {
         func();
         return;
     }
     set_time(time);
     m_text.Set(time);
     m_action = func;
 }
示例#2
0
    public void AddPoint(bool side)
    {
        if (side)
        {
            m_right_score += 1;
        }
        else
        {
            m_left_score += 1;
        }
        m_left_score_text.Set(m_left_score);
        m_right_score_text.Set(m_right_score);

        TestWin();
    }