void CmdBlockAttack() { int x = (int)Math.Round(transform.position.x); int y = (int)Math.Round(transform.position.z); int _x = (int)Math.Round(originPos.x); int _y = (int)Math.Round(originPos.z); floor.BlockAttack(x - _x, y - _y, gameObject); }