Search Unity

merhaba birisi yardımcı olabilirmi

Discussion in 'Getting Started' started by fotoselloo7, Mar 10, 2023.

  1. fotoselloo7

    fotoselloo7

    Joined:
    Mar 10, 2023
    Posts:
    1
    Assets\script\PlayerController.cs(8,25): error CS1002: ; expected


    System.Collections kullanarak;
    System.Collections.Generic kullanarak;
    UnityEngine kullanarak;

    genel sınıf PlayerController: MonoBehavour
    {

    Rigidbody2D PlayerRB

    geçersiz Uyanık()
    {

    }
    // Başlat, ilk çerçeve güncellemesinden önce çağrılır
    geçersiz Başlat()
    {
    PlayerRB - GetComponent<Rigidbody2D>();
    }

    // Güncelleme, çerçeve başına bir kez çağrılır
    geçersiz Güncelleme()
    {
    print(Input.GetAxis("Yatay"));
    }

    geçersiz FixeUpdate()
    {

    }

    geçersiz HorizontalMove()
    {
    //PlayerRB.velocity - new Vector2(Input.GetAxis("Yatay"),);
    }

    }
     
  2. BABIA_GameStudio

    BABIA_GameStudio

    Joined:
    Mar 31, 2020
    Posts:
    497
    Do what the error message tells you and put a
    ;
    at the end of this line
    Rigidbody2D PlayerRB


    Please next time post in English so we don't have to translate the post, and also use code tags when posting your script code so that we can see line numbers and correct formatting.

    I expect you will get more errors after fixing this one as I can see other mistakes in your script that you will need to correct.