D
D
Daniel999872020-12-07 14:26:34
Unity
Daniel99987, 2020-12-07 14:26:34

What to do with errors CS1525, CS1001, CS1026, CS1003?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlaerMufment : MonoBehaviour {

    CharacterController cc;
    Vector3 moveVec;

    float speed = 5;

    int laneNamber = 1,
        lanesCount = 2;

    public float FirstlanePos,
                 LaneDistance,
                 SideSpeed;


    void Start()
    {
        cc = GetComponent<CharacterController>();
        moveVec = new Vector3(1, 0, 0);
    }

    


    void Update()
    {
        moveVec.x *= speed;
        moveVec *= Time.deltaTime;

        float imput = Input.GetAxis("Horizontal");

        if (Mathf.Abs(input) >.if);
        {
            laneNamber += (int)Matht.Sign(input);
            laneNamber = Mathf.Clamp(laneNamber, 0, lanesCount);
        }

        Vectore3 newPos = transfore.position;
        newPos.z = Mathf.Lerp(newPos.z, FirstLanePos + (laneNamber * LaneDistance), Time.deltaTime * SideSpeed);
        transform.position = newPos;

        cc.Move(moveVec);
    }
}


Assets\Script\PlaerMufment.cs(36,31): error CS1525: Invalid expression term '.' Assets\Skript \ PlaerMufment.cs(36,32 )
: error CS1001: Identifier expected CS1003: Syntax error, '(' expected Assets\Script\PlaerMufment.cs(36,34): error CS1525: Invalid expression term ')'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soloveid, 2020-12-07
@Daniil99987

See line 36
Looks like this one

if (Mathf.Abs(input) >.if);

There is clearly something wrong at the end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question