using UnityEngine;
using System.Collections;
public class Player_Controller : MonoBehaviour {
public float Speed = 50f;
public float JumpPower = 200;
public bool grounded;
void Start () {
}
void Update () {
}
void FixedUpdated () {
float h = Input.GetAxis("Horizontal");
GetComponent<Rigidbody2D>().AddForce((Vector2.right * Speed) * h);
}
}
This is my code. And it doesn’t make any error and warning text. But my Character doen’t move.
I set boxcoll on character and ground.
And i dom’t set is trigger…[56157-제목-없음.png|56157] Plz Help me!!