示例#1
0
 //-----------------------------------------------------
 void P1timmer()
 {
     if (startTime == true)
     {
         timer -= Time.deltaTime;
         //Debug.Log(timer + "coll timmmmer");
     }
     if (timer <= 0)
     {
         startTime = false;
         timer     = 7.0f;
         control.SetRunningSpeed_FAST();
     }
 }
示例#2
0
    //-----------------------------------------------------
    void P2timmer()
    {
        //timer -= Time.deltaTime;
        if (startTime2 == true)
        {
            timer2 -= Time.deltaTime;
//			Debug.Log(timer2 + "coll palyer 2 timmmmer");
        }
        if (timer2 <= 0)
        {
            startTime2 = false;
            timer2     = 5.0f;
            control2.SetRunningSpeed_FAST();
        }
    }