예제 #1
0
 // Update is called once per frame
 void Update()
 {
     MiniProfiler.AddMessage("Velocity " + _velocity + "\nRB Velocity " + GetComponent <Rigidbody2D>().velocity);
     _velocity.x = Input.GetAxis("Horizontal") * speed;
     //rigidbody2D.AddForce(new Vector2(Input.GetAxis("Horizontal") * speed, 0));
 }