CaGi
Hectopat
- Katılım
- 13 Eylül 2020
- Mesajlar
- 146
Arkadaşlar oyun yapıyordum bu sorun çıktı.
Kod:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
Rigidbody2D playerRB;
public float moveSpeed - 1f;
void Awake()
{
}
// Start is called before the first frame update
void Start()
{
playerRB = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
playerRB.Velocity = new Vector2(Input.GetAxis("Horizontal") * moveSpeed, playerRB.velocity.y);
}
void FixedUpdate()
{
}
void HorizontalMove()
{
//playerRB.velocity = new Vector2(Input.GetAxis("Horizontal"),);
}
}