//----------------------------------------------------- void P1timmer() { if (startTime == true) { timer -= Time.deltaTime; //Debug.Log(timer + "coll timmmmer"); } if (timer <= 0) { startTime = false; timer = 7.0f; control.SetRunningSpeed_FAST(); } }
//----------------------------------------------------- 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(); } }