using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KamoynKontrol : MonoBehaviour
{
public Rigidbody2D onteker;
public Rigidbody2D ceker;
public Rigidbody2D dingil;
public float hiz = 20;
private float hareket;
void Start()
{
}
void Update()
{
hareket = Input.GetAxis("Horizontal");
}
private void FixedUpdate()
{
ceker.AddTorque(hareket * hiz * Time.fixedDeltaTime);
}
}