예제 #1
0
 public void Move(Vector3 moveDirection)
 {
     transform.Translate(transform.right * moveDirection.x * _characterData.GetSpeed());
     transform.Translate(transform.up * moveDirection.y * _characterData.GetSpeed());
 }
예제 #2
0
 public void Move(Vector3 moveDirection)
 {
     moveDirection = moveDirection.normalized;
     transform.Translate(moveDirection * _characterData.GetSpeed());
 }