onurgunes
Hectopat
- Katılım
- 25 Kasım 2020
- Mesajlar
- 52
Daha fazla
- Sistem Özellikleri
- RM-344 144HZ 1 MS DISPLAY PORT
MSI GTX 1660 TI ARMOR OC 6GB
AMD RYZEN 5 3600
AMD A320M-A PRO
- Cinsiyet
- Erkek
- Meslek
- Elektrik - Elektronik
All compile errors to be fixed diyor ama compile error göremiyorum. Visual Studio programında da sorun bulunamadı yazıyor.
Düzenleme ; Şu an geldi, 33.35'de "; expected" diyor.
Düzenleme ; Şu an geldi, 33.35'de "; expected" diyor.
Kod:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterMove : MonoBehaviour
{
// Start is called before the first frame update
public float moveSpeed;
private Animator anim;
private Rigidbody2D rb2d;
float moveHorizontal;
}
void Start()
{
moveSpeed = 5;
moveHorizontal = Input.GetAxis('Horizontal');
anim = GetComponent<Animator>();
rb2d = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
CharacterMovement();
}
void CharacterMovement()
{
moveHorizontal = Input.GetAxis('Horizontal');
rb2d.velocity=new Vector 2(moveHorizontal * moveSpeed, rb2d.velocity.y);
}
[ATTACH type="full"]1971382[/ATTACH]
Dosya Ekleri
Son düzenleyen: Moderatör: