Ejemplo n.º 1
0
 //Tell the GridHandler where we want to move
 private void SendMove(int xMove, int zMove)
 {
     GridHandler.AttemptMovePlayer(coords[0], coords[1], xMove, zMove);
     facing = new int[2] {
         xMove, zMove
     };
     transform.LookAt(new Vector3(transform.position.x + xMove, transform.position.y, transform.position.z + zMove));
 }