Здравствуйте Ув.Форумчани помогите исправить ошибку
1 Assets/Cars/Script/CarController1.cs(72,30): error CS0103: The name `countkolhorizontal' does not exist in the current context
2 Assets/Cars/Script/CarController1.cs(74,17): error CS0103: The name `countkolhorizontal' does not exist in the current context
3 Assets/Cars/Script/CarController1.cs(76,35): error CS0103: The name `countkolhorizontal' does not exist in the current context
4 Assets/Cars/Script/CarController1.cs(78,17): error CS0103: The name `countkolhorizontal' does not exist in the current context
5 Assets/Cars/Script/CarController1.cs(81,16): error CS0103: The name `countkolhorizontal' does not exist in the current context
Код
float InputKey()
{
1.(72,30) if(Input.GetKey("a")&count_kol_horizontal>-1)
{
2.(74,17) count_kol_horizontal-=0.01f;
}
3.(76,35) else if(Input.GetKey("d")&count_kol_horizontal<1)
{
4.(78,17) count_kol_horizontal+=0.01f;
}
5.(81,16) return count_kol_horizontal;
}
P/s: где стоит 1-5 и (**.**) я расставил сам чтоб понят где что стоит